|
| vector () |
| Default constructor. More...
|
|
void | push_back (const T &value) |
| Adds an element to the end of the vector. More...
|
|
void | pop_back () |
| Removes the last element of the vector. More...
|
|
size_t | size () const |
| Returns the number of elements in the vector. More...
|
|
T & | front () |
| Returns a reference to the first element. More...
|
|
T & | back () |
| Returns a reference to the last element. More...
|
|
bool | empty () const |
| Checks if the vector is empty. More...
|
|
void | clear () |
| Clears the contents of the vector. More...
|
|
void | resize (size_t newSize) |
| Resizes the vector to contain the specified number of elements. More...
|
|
void | reserve (size_t newCapacity) |
| Reserves storage for the specified number of elements. More...
|
|
void | erase (iterator position) |
| Removes the element at the specified position. More...
|
|
void | insert (iterator position, const T &value) |
| Inserts an element at the specified position. More...
|
|
void | swap (vector &other) |
| Swaps the contents of the vector with another vector. More...
|
|
iterator | begin () |
| Returns an iterator to the first element. More...
|
|
iterator | end () |
| Returns an iterator to the last element. More...
|
|
template<class T>
class std::vector< T >
A simple vector class template.
- Template Parameters
-
Definition at line 290 of file std.hpp.