adding element in vector c++

C++
vector_name.push_back(element_to_be_added);std::vector<int> v;
v.push_back(10);
Source

Also in C++: