How to use push back

From KratosWiki
Jump to: navigation, search

If you want to create vector without knowing how many elements it will be made of, you can use the push_back

In order to get some additional information you can take a look to this useful tutorial:

Look carefully the sections about reserve() and capacity()

Personal tools