Hacker News new | ask | show | jobs
by afranchuk 1465 days ago
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.