Compartilhar via


multimap::max_size

Returns the maximum length of the multimap.

size_type max_size( ) const;

Return Value

The maximum possible length of the multimap.

Example

// multimap_max_size.cpp
// compile with: /EHsc
#include <map>
#include <iostream>

int main( )
{
   using namespace std;
   multimap <int, int> m1;
   multimap <int, int> :: size_type i;

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

Sample Output

The following output is for x86.

The maximum possible length of the multimap is 536870911.

Requirements

Header: <map>

Namespace: std

See Also

Reference

multimap Class

Standard Template Library