C++ STL vector
C++ examples for STL:vector
Click the following links for the tutorial for STL and vector.
Creating a vector that holds integers
Specializing STL vector, store int value in vector
Vector insert and erase
Using Uniform Initialization to Construct a vector
Initializing Objects with Initializer Lists
Explicit initializer_list Usage
Storing a Growing Number of Objects Using STL vector
Resizing a vector
Reducing the capacity of a vector
Removing elements from a vector
Adding elements to arbitrary points in a vector
Use the capacity method to determine how many elements the vector is capable of storing before it will resize.
Bounds-checking on vectors
Storing Strings in a Sequence, Use a vector for array-like storage of your strings.
Storing Pointers in a vector
Copying a vector, copy the contents of one vector into another.
Using vectors Instead of Arrays to store built-in types, objects, pointers, etc. in a sequence
Demonstrating C++ Standard Library class template vector.
Recursively Find the Minimum Value in a vector
Use vector to track Dice Rolling random number
Use a vector of integers to track value range
Bucket Sort on vector of positive integers
Enhanced Bubble Sort on vector of number
Bubble Sort on vector of number
Merge Sort vector of number
Quick sort on vector
Recursive Binary Search on vector of integer
Recursive Linear Search on vector
Binary search to find an integer from a vector
Vector class element at, erase, insert functions.
Working with a vector container to add integer value
Outputting product records & cost, Getting the alignment right.
Storing double type numbers in a vector
Storing student ages in dynamic array containers
Storing student names and grades in two vectors
Frequency of words in text.
Sorting an array in ascending sequence - using a vector<T> container
The Capacity and Size of a Vector
Using std::vector<T> Containers
Demonstrate push_back(), operator, size() on vector
Demonstrate insert(), erase() on vector
Demonstrate constructors, swap(), empty(), back(), pop_back() on vector
Vector to string objects, push_back(), and 
Create vector of int and add value to the vector
Reserve space for 50 elements in vector
Resize a vector
Show the size and capacity of vector.
Create an empty vector and then assign it a sequence that is the reverse of another vector.
Change vector element values using array subscript syntax
Create another vector that contains a subrange of vector.
Cycle through vector in the reverse direction using a reverse_iterator.
Cycle through vector in the forward direction using an iterator.
Declare reverse iterator to a vector<int>
Declare an iterator to a vector<int>.
Get the first and last element from vector using rbegin() and rend()
Get the first and last element from vector using begin() and end()
Use pop_back() to remove one element from vector.
Add elements to the end of vector using push_back member function.
Compute the average of the values in vector using array subscripting operator.
Assign elements to vector using array-subscripting syntax.
Exchange the contents of vector 1 and vector 3.
Insert element to vector at the end
Remove the first element from vector
Insert element at the start of vector
Determine if one vector is less than vector with lexicographical compare.
Insert more characters into vector at the end.
Compare two vector containers.
Show the size of vector, which is the number of elements
Create another vector that is the same as the first vector
Use a reverse iterator to show the contents of vector in reverse.
Declare a reverse iterator for vector.
Insert characters into vector. An iterator to the inserted object is returned.
Obtain an iterator to the start of vector.
Declare an iterator to a vector<char>.
Declare an empty vector that can hold char objects.
Store user-defined objects in a vector.
Extract Sentences from a Vector of Characters