| 487 | /// Associate an object of type @c T with an executor of type @c Executor. |
| 488 | template <typename Executor, typename T> |
| 489 | inline executor_binder<typename decay<T>::type, Executor> |
| 490 | bind_executor(const Executor& ex, ASIO_MOVE_ARG(T) t, |
| 491 | typename constraint< |
| 492 | is_executor<Executor>::value || execution::is_executor<Executor>::value |
| 493 | >::type = 0) |
| 494 | { |
| 495 | return executor_binder<typename decay<T>::type, Executor>( |
| 496 | executor_arg_t(), ex, ASIO_MOVE_CAST(T)(t)); |
| 497 | } |
| 498 | |
| 499 | /// Associate an object of type @c T with an execution context's executor. |
| 500 | template <typename ExecutionContext, typename T> |
no test coverage detected