19.4 CONTAINER CLASSES
Many times, we have to deal with many objects of a particular class. Previously, we have studied Arrays. We may consider an array as some sort of basic or elementary container. Array is a very powerful data structures. Most of the other structures are based on array as a building block.
However, for many Abstract Data Types (ADT) some additional behaviour is required. Here we will discuss container classes. Though every programmer can write or generate code by himself, it is better to have a standard library. As the containers will have different types of objects in different applications, technique of template becomes most appropriate. Out of many containers defined in Standard Template Library, common ones are listed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access