Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::async_result< Handler > Class Template Reference

An interface for customising the behaviour of an initiating function. More...

#include <async_result.hpp>

Inheritance diagram for boost::asio::async_result< Handler >:

Public Types

typedef void type
 The return type of the initiating function. More...
 

Public Member Functions

 async_result (Handler &)
 Construct an async result from a given handler. More...
 
type get ()
 Obtain the value to be returned from the initiating function. More...
 

Detailed Description

template<typename Handler>
class boost::asio::async_result< Handler >

An interface for customising the behaviour of an initiating function.

This template may be specialised for user-defined handler types.

Member Typedef Documentation

template<typename Handler>
typedef void boost::asio::async_result< Handler >::type

The return type of the initiating function.

Constructor & Destructor Documentation

template<typename Handler>
boost::asio::async_result< Handler >::async_result ( Handler &  )
inlineexplicit

Construct an async result from a given handler.

When using a specalised async_result, the constructor has an opportunity to initialise some state associated with the handler, which is then returned from the initiating function.

Member Function Documentation

template<typename Handler>
type boost::asio::async_result< Handler >::get ( )
inline

Obtain the value to be returned from the initiating function.


The documentation for this class was generated from the following file: