...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Conditionally invoke the stored completion handler.
bool maybe_invoke();
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.
true
if the invocation took
place.