Hacker News new | past | comments | ask | show | jobs | submit login

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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: