在线文档教程
C++
动态内存管理 | Dynamic memory management

std::scoped_allocator_adaptor::max_size

STD:范围[医]分配器[医]适配器::[医]大小

Defined in header
size_type max_size() const;(since C++11)

通过调用std::allocator_traits<OuterAlloc>::max_size(outer_allocator())...

参数

%280%29

返回值

Outeralloc的最大分配大小。

另见

max_size (deprecated in C++17)returns the largest supported allocation size (public member function of std::allocator)
max_size staticreturns the maximum object size supported by the allocator (public static member function of std::allocator_traits)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/Memory/作用域[医]分配器[医]适配器/最大[医]大小