vector<int> v; // new empty vector
vector<int> v(5); // new vector of size 5
vector<boolean> v(5, true); // new vector of size 5 with all values initialized to true
v.size(); // get size
v[i]; // access ith element
v.push_back(x); // insert x at end of vector
v.pop_back(x); // delete last element
v.begin(); // get iterator to beginning
v.end(); // get iterator to end (theoretically, the element after the last element)
v.erase(v.begin() + 4); //delete 4th element
sort(v.begin(), v.end()) //sort vector
reverse(v.begin(), v.end()) // reverse the vector