Namespaces
Variants
Actions

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::max_size

From cppreference.com
 
 
Memory management library
(exposition only*)
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage(until C++20)
(until C++20*)
(until C++20*)
Garbage collector support(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
 
 
Defined in header <scoped_allocator>
size_type max_size()const;
(since C++11)

Reports the maximum allocation size supported by the outer allocator, by calling std::allocator_traits<OuterAlloc>::max_size(outer_allocator()).

[edit]Parameters

(none)

[edit]Return value

The maximum allocation size for OuterAlloc.

[edit]See also

(until C++20)
returns the largest supported allocation size
(public member function of std::allocator<T>)[edit]
[static]
returns the maximum object size supported by the allocator
(public static member function of std::allocator_traits<Alloc>)[edit]
close