| <<< std::vector example | Index | std::vector access >>> |
// Default constructor
explicit vector( A const& al = A() ); // (*)
// Initial size and values
explicit vector( size_type n, T const& v = T(), A const& al = A() );
// Copy constructor
vector( vector const& x );
// Initial range of values
vector( const_iterator first, const_iterator last, A const& al = A() );
(*) where
A is the memory allocator type, and
T is the container's data type.
Note that using the second constructor requires either
a default constructor for T
an explicit value for the second argument.
| <<< std::vector example | Index | std::vector access >>> |