MCPcopy Create free account
hub / github.com/boostorg/asio / async_completion

Method async_completion

include/boost/asio/async_result.hpp:476–482  ·  view source on GitHub ↗

Constructor. * The constructor creates the concrete completion handler and makes the link * between the handler and the asynchronous result. */

Source from the content-addressed store, hash-verified

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<

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected