multiset::max_size

Returns the maximum length of the multiset.

size_type max_size( ) const;

Return Value

The maximum possible length of the multiset.

Example

// multiset_max_size.cpp
// compile with: /EHsc
#include <set>
#include <iostream>

int main( )
{
   using namespace std;   
   multiset <int> ms1;
   multiset <int>::size_type i;

   i = ms1.max_size( );   
   cout << "The maximum possible length "
        << "of the multiset is " << i << "." << endl;
}

Sample Output

The following output is for x86.

The maximum possible length of the multiset is 1073741823.

Requirements

Header: <set>

Namespace: std

See Also

Reference

multiset Class

Standard Template Library