vector Members
Reference
Constructors
Constructs a vector of a specific size or with elements of a specific value or with a specific allocator or as a copy of some other vector. |
Typedefs
A type that represents the allocator class for the vector object. |
|
A type that provides a random-access iterator that can read a const element in a vector. |
|
A type that provides a pointer to a const element in a vector. |
|
A type that provides a reference to a const element stored in a vector for reading and performing const operations. |
|
A type that provides a random-access iterator that can read any const element in the vector. |
|
A type that provides the difference between the addresses of two elements in a vector. |
|
A type that provides a random-access iterator that can read or modify any element in a vector. |
|
A type that provides a pointer to an element in a vector. |
|
A type that provides a reference to an element stored in a vector. |
|
A type that provides a random-access iterator that can read or modify any element in a reversed vector. |
|
A type that counts the number of elements in a vector. |
|
A type that represents the data type stored in a vector. |
Member Functions
Erases a vector and copies the specified elements to the empty vector. |
|
Returns a reference to the element at a specified location in the vector. |
|
Returns a reference to the last element of the vector. |
|
Returns a random-access iterator to the first element in the container. |
|
Returns the number of elements that the vector could contain without allocating more storage. |
|
Erases the elements of the vector. |
|
Tests if the vector container is empty. |
|
Returns a random-access iterator that points just beyond the end of the vector. |
|
Removes an element or a range of elements in a vector from specified positions. |
|
Returns a reference to the first element in a vector. |
|
Returns an object to the allocator class used by a vector. |
|
Inserts an element or a number of elements into the vector at a specified position. |
|
Returns the maximum length of the vector. |
|
Deletes the element at the end of the vector. |
|
Add an element to the end of the vector. |
|
Returns an iterator to the first element in a reversed vector. |
|
Returns an iterator to the end of a reversed vector. |
|
Reserves a minimum length of storage for a vector object. |
|
Specifies a new size for a vector. |
|
Returns the number of elements in the vector. |
|
Exchanges the elements of two vectors. |
Operators
Returns a reference to the vector element at a specified position. |