Jump to content

C++ Language/Std/Stl/CollectionClasses/SequenceCollections/Vector/Size

From Wikibooks, open books for an open world

STL implements a vector as having an allocation "capacity" (queried by veciVar.capacity()) that may be somewhat larger than that collection's current size (queried by veciVar.size()).

Additional information about vector size (includes interactive examples)