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
Does this exist anywhere outside of C++?
2 years ago by Hellfire103 to c/programmerhumor
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
@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
go to feed...
@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
go to feed...
What the heck is endl???
save