Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

basic_system_executor::query (第 2 个/共 3 个重载) - Boost C++ 函数库
PrevUpHomeNext

查询 allocator 属性的当前值。

constexpr Allocator query(
    execution::allocator_t< void > ) const;

请勿直接调用此函数。它旨在与 query 定制点一起使用。

例如:

boost::asio::system_executor ex;
auto alloc = boost::asio::query(ex,
    boost::asio::execution::allocator);

PrevUpHomeNext