Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -20446,7 +20446,7 @@ This slowdown can be significant compared to `printf`-style output.

##### Note

For `cin`/`cout` (and equivalent) interaction, there is no reason to flush; that's done automatically.
For `cin`/`cout` (and equivalent) interaction, there is usually no reason to flush; that's typically done automatically.
For writing to a file, there is rarely a need to `flush`.

##### Note
Expand All @@ -20460,6 +20460,7 @@ Windows). So for a string stream, `s << endl` just inserts a *single* character,
##### Note

Apart from the (occasionally important) issue of performance,
and the rare cases where it is important to flush manually,
the choice between `'\n'` and `endl` is almost completely aesthetic.

## <a name="ss-regex"></a>SL.regex: Regex
Expand Down