Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The rule of thumb is to use containers of values when you can, use containers of pointers when you must. |
Containers of pointers must be used when the identity of the contained objects matters, in addition to their state. For example, containers of pointers must be used when the same instance must be “in” several containers at the same time.