Create an executor_work_guard
object.
template< typename T> executor_work_guard< typename associated_executor< T >::type > make_work_guard( const T & t, typename constraint< !is_executor< T >::value >::type = 0, typename constraint< !execution::is_executor< T >::value >::type = 0, typename constraint< !is_convertible< T &, execution_context & >::value >::type = 0);
An arbitrary object, such as a completion handler, for which the associated executor will be obtained.
A work guard constructed with the associated executor of the object t
, which is obtained as if by calling
get_associated_executor(t)
.