...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Store a completion handler in the container.
template< class Handler, class Allocator> void emplace( Handler&& handler, Allocator const& alloc, net::cancellation_type cancel_type = net::cancellation_type::terminal);
Requires this->has_value()
== false .
Name |
Description |
---|---|
|
The completion handler to store. The implementation takes ownership of the handler by performing a decay-copy. |
|
The allocator to use. |
|
The type of cancellation allowed to complete this op. |