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
cancellation_state::cancellation_state (2 of 4 overloads)

Construct and attach to a parent slot to create a new child slot.

template<
    typename CancellationSlot>
constexpr cancellation_state(
    CancellationSlot slot);

Initialises the cancellation state so that it allows terminal cancellation only. Equivalent to cancellation_state(slot, enable_terminal_cancellation()).

Parameters

slot

The parent cancellation slot to which the state will be attached.


PrevUpHomeNext