[#bsl-stop_source-2constructor-053] = xref:bsl.adoc[bsl]::xref:bsl/stop_source.adoc[stop_source]::stop_source :relfileprefix: ../../ :mrdocs: 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/stop_source/2constructor-0a.adoc[stop_source](); ---- [.small]#xref:bsl/stop_source/2constructor-0a.adoc[_» more..._]# Create a `stop_source` object that refers to the same stop state (or lack thereof) as the specified 'original. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/stop_source/2constructor-0f.adoc[stop_source](xref:bsl/stop_source.adoc[stop_source] const& original) noexcept; ---- [.small]#xref:bsl/stop_source/2constructor-0f.adoc[_» more..._]# Create a `stop_source` object that does not refer to a stop state and, therefore, cannot be used to request a stop. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/stop_source/2constructor-054.adoc[stop_source](xref:bsl/nostopstate_t.adoc[nostopstate_t]) noexcept; ---- [.small]#xref:bsl/stop_source/2constructor-054.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/stop_source/2constructor-02.adoc[stop_source](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<stop_source>] original) noexcept; ---- [.small]#xref:bsl/stop_source/2constructor-02.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/stop_source/2constructor-0b.adoc[stop_source](xref:bsl/allocator-0df.adoc[bsl::allocator<char>] allocator); ---- [.small]#xref:bsl/stop_source/2constructor-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#