Constructors

Synopses

Declared in <bslstl_stoptoken.h>

Create a stop_source object that refers to a distinct stop state, using the currently installed default allocator to supply memory.

Create a stop_source object that refers to the same stop state (or lack thereof) as the specified 'original.

stop_source(stop_source const& original) noexcept;

Create a stop_source object that does not refer to a stop state and, therefore, cannot be used to request a stop.

explicit
stop_source(nostopstate_t) noexcept;

Create a stop_source object that refers to the stop state (or lack thereof) referred to by the specified original, and reset original to not refer to a stop state.

Create a stop_source object that refers to a distinct stop state, using the specified allocator to supply memory. Note, however, that stop_source is not allocator‐aware.

explicit
stop_source(bsl::allocator<char> allocator);

Created with MrDocs