|
vector::max_sizepublic member function
size_type max_size () const; Return maximum size Returns the maximum number of elements that the vector container can hold.This is not the amount of storage space currently allocated to the vector (this can be obtained with member vector::capacity), but the maximum potential size the vector could reach due to system or library implementation limitations. ParametersnoneReturn ValueThe maximum number of elements a vector object can have as its content.Member type size_type is an unsigned integral type. Example
A possible output for this program could be:
ComplexityConstant.See also
|