Yes! For the same reason it does the right thing in C APIs. Which many people don't realize (understandably) until they read the fine print in docs.
If you read the specification of std::endl, it simply sends a "\n" and flushes.
If you read the specification of std::endl, it simply sends a "\n" and flushes.
No comments yet.