Bitcoin Core 29.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
mp::DestructorCatcher< T > Struct Template Reference

Needed for libc++/macOS compatibility. More...

#include <util.h>

Public Member Functions

template<typename... Params>
 DestructorCatcher (Params &&... params)
 
 ~DestructorCatcher () noexcept
 

Public Attributes

value
 

Detailed Description

template<typename T>
struct mp::DestructorCatcher< T >

Needed for libc++/macOS compatibility.

Lets code work with shared_ptr nothrow declaration https://github.com/capnproto/capnproto/issues/553#issuecomment-328554603

Definition at line 152 of file util.h.

Constructor & Destructor Documentation

◆ DestructorCatcher()

template<typename T >
template<typename... Params>
mp::DestructorCatcher< T >::DestructorCatcher ( Params &&...  params)
inline

Definition at line 156 of file util.h.

◆ ~DestructorCatcher()

template<typename T >
mp::DestructorCatcher< T >::~DestructorCatcher ( )
inlinenoexcept

Definition at line 159 of file util.h.

Member Data Documentation

◆ value

template<typename T >
T mp::DestructorCatcher< T >::value

Definition at line 154 of file util.h.


The documentation for this struct was generated from the following file: