A container is a holder object that stores a collection of other objects (its elements). They are implemented as class templates, which allows great flexibility in the types supported as elements.
What are containers in OOP?
OOP. Yahoo. Author: vaishali bhatia. In computer science, a container is a class, a data structure or an abstract data type (ADT) whose instances are collections of other objects. In other words, they store objects in an organized way that follows specific access rules.
What is containers in STL?
An STL container is a collection of objects of the same type (the elements). Container owns the elements. Creation and destruction is controlled by the container.