# push_back **Description** : Add new elements to the vector **Example**: ```cpp //Declare the vector std::vector vector1; //Function to push_back values to the vector vector1.push_back(1); vector1.push_back(2); ``` **[See Sample code](../snippets/vector/push_back.cpp)** **[Run Code](https://rextester.com/JBQCG9959)**