[#btcsignals-signal-connect]
= xref:btcsignals.adoc[btcsignals]::xref:btcsignals/signal.adoc[signal]::connect
:relfileprefix: ../../
:mrdocs:

Connect a new callback to the signal&period; A forwarding callable accepts anything that can be stored in a std&colon;&colon;function&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Callable&gt;
&lsqb;&lsqb;requires&lowbar;capability(0x7f9521bf8168), requires&lowbar;capability(0x7f9500a48038), requires&lowbar;capability(0x7f951f8ebdb8), requires&lowbar;capability(0x7f950d443aa8), requires&lowbar;capability(0x7f95133b62e8), requires&lowbar;capability(0x7f95231b7278), requires&lowbar;capability(0x7f9516ce7ac8), requires&lowbar;capability(0x7f9503ad1f18)&rsqb;&rsqb;
xref:btcsignals/connection.adoc[connection]
connect(Callable&& func);
----

== Return Value

A connection that can be held and disabled later&period;

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *Callable*
| The type of the callback, storable in a std&colon;&colon;function&period;
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| The callback to connect&period;
|===


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