mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Update CppCoreGuidelines.md
This commit is contained in:
parent
2ce60168eb
commit
803a7f6aef
|
@ -1668,7 +1668,7 @@ These can now be combined where needed:
|
|||
void read_and_print()
|
||||
{
|
||||
auto x = read(cin);
|
||||
print(cout& os, x);
|
||||
print(cout, x);
|
||||
}
|
||||
|
||||
If there was a need, we could further templatize `read()` and `print()` on the data type, the I/O mechanism, etc. Example:
|
||||
|
|
Loading…
Reference in New Issue
Block a user