Standard C++ Library Class Reference
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
list
Container
Summary
A sequence that supports bidirectional iterators
Contents
Synopsis●
Description●
Interface●
Constructors and Destructors●
Assignment Operator●
Allocator●
Iterators●
Member Functions●
Non-member Operators●
Example●
Warnings●
See Also●
Synopsis
#include <list>
template <class T, class Allocator = allocator>
class list;
Description
list<T,Allocator> is a type of sequence that supports bidirectional iterators. A list<T,Allocator> allows
constant time insert and erase operations anywhere within the sequence, with storage management handled
automatically. Constant time random access is not supported.
Any type used for the template parameter T must provide the following (where T is the type, t is a value of T