|Very few programs can be
written without resources being transferred between scopes.
|As before, letís look at
built-in mechanisms first.
|Objects are resources, how
are they transferred?
|Return by value transfers an
object from function scope to the callerís scope.
|Passing by value transfers
an object (non-destructively) in the opposite direction.
|Both of these use a
combination of the copy constructor and operator=. Those can be overridden,
giving room for different transfer policies.