Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

consign

Completion token adapter used to specify that the completion handler should carry additional values along with it.

template<
    typename CompletionToken,
    typename... Values>
constexpr consign_t< typename decay< CompletionToken >::type, typename decay< Values >::type...> consign(
    CompletionToken && completion_token,
    Values &&... values);

This completion token adapter is typically used to keep at least one copy of an object, such as a smart pointer, alive until the completion handler is called.

Requirements

Header: boost/asio/consign.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext