mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
@@ -2885,7 +2885,7 @@ This makes it clear to callers that the object is assumed to be modified.
|
|||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
A `T&` argument can pass information into a function as well as well as out of it.
|
A `T&` argument can pass information into a function as well as out of it.
|
||||||
Thus `T&` could be an in-out-parameter. That can in itself be a problem and a source of errors:
|
Thus `T&` could be an in-out-parameter. That can in itself be a problem and a source of errors:
|
||||||
|
|
||||||
void f(string& s)
|
void f(string& s)
|
||||||
|
|||||||
Reference in New Issue
Block a user