public member function
<unordered_map>
std::unordered_map::max_size
size_type max_size() const noexcept;
Return maximum size
This is the maximum potential number of elements the container can hold due to system constraints or limitations on its library implementation.
Parameters
noneReturn Value
The maximum number of elements the object can hold as content.Member type
size_type is an unsigned integral type.Example
|
|
Possible output:
max_size = 357913941 max_bucket_count = 357913941 max_load_factor = 1
Complexity
Constant.Iterator validity
No changes.See also
- unordered_map::empty
- Test whether container is empty (public member function)
- unordered_map::max_bucket_count
- Return maximum number of buckets (public member function)
- unordered_map::max_load_factor
- Get or set maximum load factor (public member function)