bsl::stop_source::stop_source

Create a stop_source that refers to a distinct stop state.

Synopsis

Declared in <bslstl_stoptoken.h>

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

Description

Use the specified allocator to supply memory. Note, however, that stop_source is not allocator-aware.

Parameters

NameDescription
allocatorallocator used to supply memory