Standard C++ Library Reference ISO/IEC (VERSION3)

vector::swap
void swap(vector& right);
The member function swaps the controlled sequences between *this and right. If
get_allocator() == right.get_allocator(), it does so in constant time, it
throws no exceptions, and it invalidates no references, pointers, or iterators that designate
elements in the two controlled sequences. Otherwise, it performs a number of element
assignments and constructor calls proportional to the number of elements in the two controlled
sequences.
vector::value_type
typedef typename Alloc::value_type value_type;
The type is a synonym for the template parameter Ty.
vector::vector
vector();
explicit vector(const Alloc& al);
explicit vector(size_type count);
vector(size_type count, const Ty& val);
vector(size_type count, const Ty& val, const Alloc& al);
vector(const vector& right);
template<class InIt>
vector(InIt first, InIt last);
template<class InIt>
vector(InIt first, InIt last, const Alloc& al);
All constructors store an allocator object and initialize the controlled sequence. The allocator
object is the argument al, if present. For the copy constructor, it is
right.get_allocator(). Otherwise, it is Alloc().
The first two constructors specify an empty initial controlled sequence. The third constructor
specifies a repetition of count elements of value Ty(). The fourth and fifth constructors
specify a repetition of count elements of value val. The sixth constructor specifies a copy of
the sequence controlled by right. If InIt is an integer type, the last two constructors specify
a repetition of (size_type)first elements of value (Ty)last. Otherwise, the last two
constructors specify the sequence [first, last).