Constructor. * The constructor creates the concrete completion handler and makes the link * between the handler and the asynchronous result. */
| 474 | * between the handler and the asynchronous result. |
| 475 | */ |
| 476 | explicit async_completion(CompletionToken& token) |
| 477 | : completion_handler(static_cast<conditional_t< |
| 478 | is_same<CompletionToken, completion_handler_type>::value, |
| 479 | completion_handler_type&, CompletionToken&&>>(token)), |
| 480 | result(completion_handler) |
| 481 | { |
| 482 | } |
| 483 | |
| 484 | /// A copy of, or reference to, a real handler object. |
| 485 | conditional_t< |
nothing calls this directly
no outgoing calls
no test coverage detected