The same is true of std::endl. std::endl is simply defined as << '\n' << std::flush; nothing more, nothing less. In all cases where endl gives you a "properly translated" newline, so does \n.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: