Aug 29, 2018
C++ Basics
Last updated
C++ Basics
Last updated
std::vector::push_back()
Adds a new element at the end of the , after its current last element. The content of val is copied (or moved) to the new element. This effectively increases the container by one, which causes an automatic reallocation of the allocated storage space if -and only if- the new vector surpasses the current vector .