Boost C++ 库

...世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei AlexandrescuC++ Coding Standards

basic_system_executor::query (3 个重载中的 1 个) - 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