[#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` that refers to the same stop state as `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` that does not refer to a stop state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/stop_source/2constructor-054.adoc[stop_source](xref:bsl/nostopstate_t.adoc[nostopstate_t] unused) noexcept; ---- [.small]#xref:bsl/stop_source/2constructor-054.adoc[_» more..._]# Create a `stop_source` by moving from `original`. [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` that refers to a distinct stop state. [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..._]# == Parameters [cols="1,4"] |=== | Name| Description | *original* | source object used to initialize this object | *unused* | tag selecting the empty `stop_source` constructor | *allocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#