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 that refers to the same stop state as original.
stop_source(stop_source const& original) noexcept;
Create a stop_source that does not refer to a stop state.
explicit
stop_source(nostopstate_t unused) noexcept;
Create a stop_source by moving from original.
stop_source(BloombergLP::bslmf::MovableRef<stop_source> original) noexcept;
Create a stop_source that refers to a distinct stop state.
explicit
stop_source(bsl::allocator<char> allocator);
Parameters
Name |
Description |
original |
source object used to initialize this object |
unused |
tag selecting the empty |
allocator |
allocator used to supply memory |
Created with MrDocs