c++ list.add code example
Example: c++ list add
list<int> myList = list<int>();
//add a 4 to the end of the list
myList.push_back(4);
//add a 5 to the begining of the list
myList.push_front(5);
list<int> myList = list<int>();
//add a 4 to the end of the list
myList.push_back(4);
//add a 5 to the begining of the list
myList.push_front(5);