在线文档教程
C++
应用 | Utilities

std::pmr::pool_options

STD::PMR::POUP[医]备选方案

Defined in header
struct pool_options;(since C++17)

std::pmr::pool_options是池资源的一组构造函数选项,包括std::pmr::synchronized_pool_resourcestd::pmr::unsynchronized_pool_resource...

数据成员

MemberMeaning
std::size_t max_blocks_per_chunk;std::size_t max_blocks_per_chunk;
std::size_t max_blocks_per_chunk;
std::size_t largest_required_pool_block;std::size_t largest_required_pool_block;
std::size_t largest_required_pool_block;

另见

synchronized_pool_resource (C++17)a thread-safe std::pmr::memory_resource for managing allocations in pools of different block sizes (class)
unsynchronized_pool_resource (C++17)a thread-unsafe std::pmr::memory_resource for managing allocations in pools of different block sizes (class)

© cppreference.com

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

http://en.cppreference.com/w/cpp/Memory/pool[医]备选方案