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 a snapshot of the develop branch, built from commit 21cd51b9b3.
PrevUpHomeNext
saved_handler::maybe_invoke

Conditionally invoke the stored completion handler.

Synopsis
bool
maybe_invoke();
Description

Invokes the stored completion handler if this->has_value() == true, otherwise does nothing. Any dynamic memory used is deallocated before the stored completion handler is invoked. The executor work guard is also reset before the invocation.

Return Value

true if the invocation took place.


PrevUpHomeNext