Standard C++ Library Reference ISO/IEC (VERSION3)
Next
Containers
A container is an STL template class that manages a sequence of elements. Such elements can
be of any object type that supplies a copy constructor, a destructor, and an assignment operator
(all with sensible behavior, of course). The destructor may not throw an exception. This
document describes the properties required of all such containers, in terms of a generic template
class Container. An actual container template class may have additional template
parameters. It will certainly have additional member functions.
The STL template container classes are:
 deque
 hash_map
 hash_multimap
 hash_multiset
 hash_set
 list
 map
 multimap
 multiset
 set
 slist
 vector
The four hash containers and slist are not required by the C++ Standard. The Standard C++
library template class basic_string also meets the requirements for a template container
class.
namespace std {
template<class Ty>
 class Container;
 // TEMPLATE FUNCTIONS
template<class Ty>
 bool operator==(
 const Container<Ty>& left,
 const Container<Ty>& right);
template<class Ty>
 bool operator!=(
 const Container<Ty>& left,










