Hellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 30 days agoDoes this exist anywhere outside of C++?lemmy.mlexternal-linkmessage-square23fedilinkarrow-up1120arrow-down16
arrow-up1114arrow-down1external-linkDoes this exist anywhere outside of C++?lemmy.mlHellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 30 days agomessage-square23fedilink
minus-squarevapeloki@lemmy.worldlinkfedilinkarrow-up30·30 days agostd::endl is used in output streams in C++ to end the line, using the os specific line termination sequence, and flush the buffer. The later one is a performance issue in many cases, why the use of "\n" is considered preferred
std::endl
is used in output streams in C++ to end the line, using the os specific line termination sequence, and flush the buffer.The later one is a performance issue in many cases, why the use of
"\n"
is considered preferred