Constructors
Declared in <kernel/bitcoinkernel_wrapper.h>
Copy-constructs by duplicating the other handle's C object.
Handle(Handle const& other);
» more...
Move-constructs, leaving other empty.
Handle(Handle&& other) noexcept;
» more...
Takes ownership of ptr, throwing if it is null.
explicit
Handle(CType* ptr);
» more...
Constructs an owning copy from a matching view.
template<typename ViewType>
requires std::derived_from<ViewType, View<CType>>
Handle(ViewType const& view);
» more...
| Name | Description |
|---|---|
| other | The handle to copy. |
| ptr | The C handle to own. |
| view | The view whose C object is duplicated. |