[#btck-Handle-046-2constructor-06]
= xref:btck.adoc[btck]::xref:btck/Handle-046.adoc[Handle]::Handle
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

Copy&hyphen;constructs by duplicating the other handle&apos;s C object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/Handle-046/2constructor-02.adoc[Handle](xref:btck/Handle-046.adoc[Handle] const& other);
----

[.small]#xref:btck/Handle-046/2constructor-02.adoc[_» more&period;&period;&period;_]#

Move&hyphen;constructs, leaving `other` empty&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/Handle-046/2constructor-0b.adoc[Handle](xref:btck/Handle-046.adoc[Handle]&& other) noexcept;
----

[.small]#xref:btck/Handle-046/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Takes ownership of `ptr,` throwing if it is null&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:btck/Handle-046/2constructor-05.adoc[Handle](CType* ptr);
----

[.small]#xref:btck/Handle-046/2constructor-05.adoc[_» more&period;&period;&period;_]#

Constructs an owning copy from a matching view&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename ViewType&gt;
requires std&colon;&colon;derived&lowbar;from&lt;ViewType, View&lt;CType&gt;&gt;
xref:btck/Handle-046/2constructor-0e.adoc[Handle](ViewType const& view);
----

[.small]#xref:btck/Handle-046/2constructor-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The handle to copy&period;
| *ptr*
| The C handle to own&period;
| *view*
| The view whose C object is duplicated&period;
|===


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