bsl::stop_source::stop_source

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.

stop_source();
» more...

Create a stop_source that refers to the same stop state as original.

stop_source(stop_source const& original) noexcept;
» more...

Create a stop_source that does not refer to a stop state.

explicit
stop_source(nostopstate_t unused) noexcept;
» more...

Create a stop_source by moving from original.

stop_source(BloombergLP::bslmf::MovableRef<stop_source> original) noexcept;
» more...

Create a stop_source that refers to a distinct stop state.

explicit
stop_source(bsl::allocator<char> allocator);
» more...

Parameters

NameDescription
originalsource object used to initialize this object
unusedtag selecting the empty stop_source constructor
allocatorallocator used to supply memory