C++ Codes
Algorithms
Algorithm Analysis in C++
Beginners
Code Snippets
Graphics
Data Structures
File Manipulation
Games
Mathematics
Miscellaneous
Visual C++ Library
C++ > Visual C++ 5.0 Standard C++ Library sample source codes
Using the Standard C++ Library in Visual C++ 5.0
Using Visual C++ 5.0 Standard C++ Library with User-Defined Types
Vector assign - Erases any existing elements in the container
Vector at - Returns const reference to the object at position pos
Vector back - Returns a const reference to the last element
Vector begin - Returns a const iterator to the first object
Vector capacity - Return the number of elements
Vector clear - Erases the elements of the vector
Vector empty - Returns true if the vector container is empty.
Vector end - Returns a const iterator which points
Vector erase - Removes from the vector container
Vector front - Returns a const reference to the first element
Vector get allocator - The member function returns allocator.
Vector insert - The above inserts object x into the vector
Vector max size - Returns the maximum number of objects
Vector operator index - Returns const reference to the object
Vector operatoreq - Equality operation on vectors
Vector operatorgt - Returns true if v2 < v1.
Vector operatorgteq - Returns true if !(v1 < v2).
Vector operatorlt - Returns true if v1 is lexicographically less
Vector operatorlteq - Returns true if !(v1 > v2).
Vector operatorneq - The opposite of equality operation. Returns !(v1 == v2)
Vector pop back - Removes an object from the end of the vector
Vector push back - Inserts object x at the end of the vector
Vector rbegin - Returns a const reverse iterator value
Vector rend - Returns a const reverse iterator value
Vector reserve - Reserves raw storage to hold at least n.
Vector resize - Forces the container to be of size sz
Vector size - Returns the number of objects stored
Vector swap - Swaps all the elements of the vector container
Vector temp swap - Swaps the contents of container v1 with
Vector vector - The default constructor creates an empty container
Page 1
Page 2
Page 3
Page 4
Privacy Policy
|
Link to Us
|
Links