
Containers library - cppreference.com
Feb 22, 2025 · The container manages the storage space that is allocated for its elements and provides member functions to access them, either directly or through iterators (objects with …
C++ named requirements: Container - cppreference.com
Nov 6, 2024 · A Container is an object used to store other objects and taking care of the management of the memory used by the objects it contains.
Containers - cppreference.com
Oct 25, 2013 · Introduction The standard library offers a wide range of containers which are used to store data. All these containers are implemented as templates to provide type-safety. …
std:: vector - cppreference.com
Apr 25, 2025 · std::vector (for T other than bool) meets the requirements of Container, AllocatorAwareContainer(since C++11), SequenceContainer, ContiguousContainer(since …
std::array - cppreference.com
Aug 2, 2024 · std::array is a container that encapsulates fixed size arrays. This container is an aggregate type with the same semantics as a struct holding a C-style array T[N] as its only …
std::set - cppreference.com
Apr 26, 2025 · std::set is an associative container that contains a sorted set of unique objects of type Key. Sorting is done using the key comparison function Compare. Search, removal, and …
std::list - cppreference.com
Apr 26, 2025 · std::list is a container that supports constant time insertion and removal of elements from anywhere in the container. Fast random access is not supported. It is usually …
std::forward_list - cppreference.com
Apr 26, 2025 · std::forward_list is a container that supports fast insertion and removal of elements from anywhere in the container. Fast random access is not supported. It is implemented as a …
std::vector<T,Allocator>::vector - cppreference.com
Nov 10, 2024 · After container move construction (overload (8)), references, pointers, and iterators (other than the end iterator) to other remain valid, but refer to elements that are now …
std::unordered_set - cppreference.com
Apr 26, 2025 · std::unordered_set is an associative container that contains a set of unique objects of type Key. Search, insertion, and removal have average constant-time complexity.