btck::Handle::Handle

Constructors

Synopses

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...

Parameters

NameDescription
otherThe handle to copy.
ptrThe C handle to own.
viewThe view whose C object is duplicated.