[#BloombergLP-bslstl-StopState-enregister]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StopState.adoc[StopState]::enregister
:relfileprefix: ../../../
:mrdocs:

If a stop has already been requested, then invoke the callback of the specified `node` and return `false`&period; Otherwise, add `node` to the list of nodes registered to this state and return `true`&period; The behavior is undefined if this method is called more than once for a given `node`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stopstate&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
enregister(xref:BloombergLP/bslstl/StopStateCallbackNode.adoc[StopStateCallbackNode]* node);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
