Boost C++ 库

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

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

查询 allocator 属性的当前值。

template<
    typename OtherAllocator>
constexpr Allocator query(
    execution::allocator_t< OtherAllocator > ) const;

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

例如:

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

PrevUpHomeNext