December 1998
Intermediate to advanced
624 pages
13h 8m
English
![]()
Containers are objects that hold other objects (see FAQ 2.15). For example, a linked list of string objects is a container—users can add numerous elements (or element objects) to the list, and in this case all the elements are of type string. The closest that the core C++ language comes to container classes is the array—but see FAQ 28.02 to find out why C++ arrays should not be used.
Unfortunately programmers' instincts tend to lead them in the wrong direction with containers. This may be because of past experience ...
Read now
Unlock full access