cppreference.com > Containers
C++ Containers
The C++ Containers (vectors, lists, etc.) are generic vessels capable of holding many different types of data. For example, the following statement creates a vector of integers:vector<int> v;Containers can hold standard objects (like the int in the above example) as well as custom objects, as long as the objects in the container meet a few requirements:
- The object must have a default constructor,
- an accessible destructor, and
- an accessible assignment operator.