Owning RAII handle for a non‐copyable C object, backed by std::unique_ptr.
Synopsis
Declared in <kernel/bitcoinkernel_wrapper.h>
template<
typename CType,
void(* DestroyFunc)(CType*)>
class UniqueHandle;
Description
Destroys the C object with DestroyFunc on scope exit.
Member Functions
Name |
Description |
|
Takes ownership of |
Returns the owned C handle. |
Protected Types
Name |
Description |
Custom deleter that forwards to the C destroy function. |
Protected Data Members
Name |
Description |
The owned C handle. |
Derived Classes
Name |
Description |
Owning wrapper over |
|
Owning wrapper over |
|
Owning wrapper over a |
Created with MrDocs