vector::max_size

vector::max_size

size_type max_size() const;

The member function returns the length of the longest sequence that the object can control.

See the related sample program.