stl:vector:size From C++ Reference previous page next page size Syntax: #include <vector> size_type size() const; The size() function returns the number of elements in the current vector. Related Topics: capacity, empty, max_size, resize previous page start next page