[#btck-Handle-046-2constructor-06] = xref:btck.adoc[btck]::xref:btck/Handle-046.adoc[Handle]::Handle :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<kernel/bitcoinkernel_wrapper.h>` Copy‐constructs by duplicating the other handle's C object. [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..._]# Move‐constructs, leaving `other` empty. [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..._]# Takes ownership of `ptr,` throwing if it is null. [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..._]# Constructs an owning copy from a matching view. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename ViewType> requires std::derived_from<ViewType, View<CType>> xref:btck/Handle-046/2constructor-0e.adoc[Handle](ViewType const& view); ---- [.small]#xref:btck/Handle-046/2constructor-0e.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The handle to copy. | *ptr* | The C handle to own. | *view* | The view whose C object is duplicated. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#