bsl::unordered_map::max_size

Return a theoretical upper bound on the size of this unordered map.

Synopsis

Declared in <bslstl_unorderedmap.h>

size_type
max_size() const noexcept;

Description

Return a theoretical upper bound on the largest number of elements that this unordered map could possibly hold. Note that there is no guarantee that the unordered map can successfully grow to the returned size, or even close to that size, without running out of resources.

Return Value

theoretical maximum number of elements