asio C++ library

PrevUpHomeNext

async_completion

Helper template to deduce the real type of a handler, capture a local copy of the handler, and then create an async_result for the handler.

template<
    typename Handler,
    typename Signature>
struct async_completion
Types

Name

Description

handler_type

The real handler type to be used for the asynchronous operation.

Member Functions

Name

Description

async_completion

Constructor.

Data Members

Name

Description

handler

A copy of, or reference to, a real handler object.

result

The result of the asynchronous operation's initiating function.

Requirements

Header: asio/async_result.hpp

Convenience header: asio.hpp


PrevUpHomeNext