April 2011
Beginner
464 pages
9h 18m
English
Each time you pass an object into a function by value, a copy of the object is made. Each time you return an object from a function by value, another copy is made.
With larger, user-created objects, the cost of these copies is substantial. You’ll use more memory than you need to, and your program will run more slowly.
The size of a user-created object on the stack is the sum of each of its member ...