Standard C++ Library Reference ISO/IEC (VERSION3)
vector::rend
const_reverse_iterator rend() const;
reverse_iterator rend();
The member function returns a reverse iterator that points at the first element of the sequence
(or just beyond the end of an empty sequence). Hence, it designates the end of the reverse
sequence.
vector::reserve
void reserve(size_type count);
If count is greater than max_size(), the member function reports a length error by
throwing an object of class length_error. Otherwise, it ensures that capacity()
henceforth returns at least count.
vector::resize
void resize(size_type newsize);
void resize(size_type newsize, Ty val);
The member functions both ensure that size() henceforth returns newsize. If it must make
the controlled sequence longer, the first member function appends elements with value Ty(),
while the second member function appends elements with value val. To make the controlled
sequence shorter, both member functions call erase(begin() + newsize, end()).
vector::reverse_iterator
typedef reverse_iterator<iterator>
reverse_iterator;
The type describes an object that can serve as a reverse iterator for the controlled sequence.
vector::size
size_type size() const;
The member function returns the length of the controlled sequence.
vector::size_type
typedef T2 size_type;
The unsigned integer type describes an object that can represent the length of any controlled
sequence. It is described here as a synonym for the implementation-defined type T2.