how to pushback in vector

C++
myvector = {1, 2, 3, 4, 5};
myvector.push_back(6)
Source

Also in C++: