查询 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);