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:

http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c4027


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

Personal tools
Categories