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.

unordered_map::max_size

Gets the maximum size of the controlled sequence.

size_type max_size() const;

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

 

// std_tr1__unordered_map__unordered_map_max_size.cpp 
// compile with: /EHsc 
#include <unordered_map> 
#include <iostream> 
 
typedef std::unordered_map<char, int> Mymap; 
int main() 
    { 
    Mymap c1; 
 
    std::cout << "max_size() == " << c1.max_size() << std::endl; 
 
    return (0); 
    } 
 
max_size() == 536870911

Header: <unordered_map>

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft