C++ - What is a container class? What are the types of
container classes? - April 16, 2009 at 14:10 PM by Vidya
What is a container class? What are the types of container classes?
A class is said to be a container class which is utilized for the purpose of
holding objects in memory or persistent media. A generic class plays a role of
generic holder. A container class is a good blend of predefined behavior and an
interface that is well known. The purpose of container class is to hide the
topology for the purpose of objects list maintenance in memory. A container
class is known as heterogeneous container, when it contains a set of different
objects. A container class is known as homogeneous container when it contains a
set of similar objects.
A container stores many entities and provide sequential or
direct access to them. List, vector and strings are............
Storage class defined for a variable determines the
accessibility and longevity of the variable. The accessibility.......
It is advisable to use container classes of the STL so that you don’t have to
go through the pain of writing the entire code for handling collisions, making
sure its working well, testing it repeatedly with an overhead of time