[#bsl-stop_source-2constructor-0b] = xref:bsl.adoc[bsl]::xref:bsl/stop_source.adoc[stop_source]::stop_source :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bslstl_stoptoken.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit stop_source(xref:bsl/allocator-0df.adoc[bsl::allocator<char>] allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#