Vector

size() [Vector template]

Returns the size of the vector. 0 = empty. This operation is constant time regardless of the size of the vector.

// PROTOTYPE
int size() const;