Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

multimap::max_size

 

Returns the maximum length of the multimap.


size_type max_size( ) const;

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;
}

The following output is for x86.

The maximum possible length of the multimap is 536870911.

Requirements

Header: <map>

Namespace: std

Show: