pass by reference
The function works on the caller's own object, not a copy.
With a reference parameter (void f(T& x)), the parameter is bound to the argument, so the function can read and modify the caller's object without copying it.
See also
The function works on the caller's own object, not a copy.
With a reference parameter (void f(T& x)), the parameter is bound to the argument, so the function can read and modify the caller's object without copying it.
See also