Constructors

Synopses

Declared in <kernel/bitcoinkernel_wrapper.h>

Copy‐constructs by duplicating the other handle's C object.

Handle(Handle const& other);

Move‐constructs, leaving other empty.

Handle(Handle&& other) noexcept;

Takes ownership of ptr, throwing if it is null.

explicit
Handle(CType* ptr);

Constructs an owning copy from a matching view.

template<typename ViewType>
requires std::derived_from<ViewType, View<CType>>
Handle(ViewType const& view);

Parameters

Name

Description

other

The handle to copy.

ptr

The C handle to own.

view

The view whose C object is duplicated.

Created with MrDocs