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

io_context::strand::post

Request the strand to invoke the given function object.

template<
    typename Function,
    typename Allocator>
void post(
    Function && f,
    const Allocator & a) const;
  » more...

(Deprecated: Use post.) Request the strand to invoke the given handler and return immediately.

template<
    typename LegacyCompletionHandler>
auto post(
    LegacyCompletionHandler && handler);
  » more...

PrevUpHomeNext