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
This is an older version of Boost and was released in 2023. The current version is 1.89.0.
Create an executor_work_guard object.
template< typename ExecutionContext> executor_work_guard< typename ExecutionContext::executor_type > make_work_guard( ExecutionContext & ctx, constraint_t< is_convertible< ExecutionContext &, execution_context & >::value > = 0);
An execution context, from which an executor will be obtained.
A work guard constructed with the execution context's executor, obtained
by performing ctx.get_executor().