[#btcsignals-scoped_connection-2constructor-08]
= xref:btcsignals.adoc[btcsignals]::xref:btcsignals/scoped_connection.adoc[scoped&lowbar;connection]::scoped&lowbar;connection
:relfileprefix: ../../
:mrdocs:

Take ownership of a connection and disconnect it when this object is destroyed&period;

== Synopsis

Declared in `&lt;util&sol;btcsignals&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
scoped&lowbar;connection(xref:btcsignals/connection.adoc[connection] rhs) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| The connection to manage&period;
|===


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