std::list
std::list
Defined in header <list> | ||
---|---|---|
template< class T, class Allocator = std::allocator<T> > class list; | (1) | |
namespace pmr { template <class T> using list = std::list<T, std::pmr::polymorphic_allocator<T>>; } | (2) | (since C++17) |
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 implemented as a doubly-linked li