Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gpderetta
on March 6, 2018
|
parent
|
context
|
favorite
| on:
Google's C++ Class
The std::stream will translate '\n' to what's required for the underlying platform, so it is a perfectly portable way to terminate a line.
What std::endl really does is flush the internal stream buffer if any.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What std::endl really does is flush the internal stream buffer if any.