unordered_multiset::max_size

Gets the maximum size of the controlled sequence.

size_type max_size() const;

Remarks

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

Example

 

// std_tr1__unordered_set__unordered_multiset_max_size.cpp 
// compile with: /EHsc 
#include <unordered_set> 
#include <iostream> 
 
typedef std::unordered_multiset<char> Myset; 
int main() 
    { 
    Myset c1; 
 
    std::cout << "max_size() == " << c1.max_size() << std::endl; 
 
    return (0); 
    } 
 
max_size() == 4294967295

Requirements

Header: <unordered_set>

Namespace: std

See Also

Reference

<unordered_set>

unordered_multiset Class

unordered_multiset::size

Other Resources

<unordered_set> Members