libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ max_size()

template<typename _Tp>
constexpr size_type std::allocator_traits< allocator< _Tp > >::max_size ( const allocator_type & __a)
inlinestaticconstexprnoexcept

The maximum supported allocation size.

Parameters
__aAn allocator.
Returns
__a.max_size()

Definition at line 749 of file bits/alloc_traits.h.

750 {
751#if __cplusplus <= 201703L
752 return __a.max_size();
753#else
754 return size_t(-1) / sizeof(value_type);
755#endif
756 }
__SIZE_TYPE__ size_t
Definition c++config.h:344
static constexpr size_type max_size(const _Alloc &__a) noexcept
The maximum supported allocation size.
Uniform interface to all allocator types.