I came to know that std::endl is actually a performance barrier in programs with lots of stream outputs are there. If that is the case, can anyone share the actual necessity of using std::endl while coding in C++?
Asked
Active
Viewed 24 times
0
-
Portability.... – iBug Mar 20 '18 at 09:55
-
It's when you need to flush the stream. That's it. – Quentin Mar 20 '18 at 09:59
-
@iBug https://stackoverflow.com/questions/213907/c-stdendl-vs-n#comment2241883_213977 – user202729 Mar 20 '18 at 09:59