Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

thread_pool::basic_executor_type::query (2 of 3 overloads)
PrevUpHomeNext

Query the current value of the inline_exception_handling property.

static constexpr execution::inline_exception_handling_t query(
    execution::inline_exception_handling_t );

Do not call this function directly. It is intended for use with the query customisation point.

For example:

auto ex = my_thread_pool.get_executor();
if (boost::asio::query(ex,
      boost::asio::execution::inline_exception_handling)
    == boost::asio::execution::inline_exception_handling.terminate)
  ...

PrevUpHomeNext