Difference between revisions of "cpp/container/list"
From cppreference.com
m (r2.7.3) (Robot: Adding fr:cpp/container/list, it:cpp/container/list) |
(wording, grammar) |
||
Line 8: | Line 8: | ||
}} | }} | ||
− | + | {{tt|std::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 double-linked list. Compared to {{c|std::forward_list}} this container provides bidirectional iteration capability while being less space efficient. | |
{{tt|std::list}} meets the requirements of {{concept|Container}}, {{concept|AllocatorAwareContainer}}, {{concept|SequenceContainer}} and {{concept|ReversibleContainer}}. | {{tt|std::list}} meets the requirements of {{concept|Container}}, {{concept|AllocatorAwareContainer}}, {{concept|SequenceContainer}} and {{concept|ReversibleContainer}}. |
Revision as of 18:02, 6 November 2012
Defined in header <list>
|
||
template< class T, |
||
std::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 double-linked list. Compared to std::forward_list this container provides bidirectional iteration capability while being less space efficient.
std::list
meets the requirements of Template:concept, Template:concept, Template:concept and Template:concept.
Contents |