![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
#include <proxy-types.h>
Public Member Functions | |
ReadDestEmplace (TypeList< LocalType >, EmplaceFn emplace_fn) | |
template<typename... Args> | |
decltype(auto) | construct (Args &&... args) |
Simple case. More... | |
template<typename UpdateFn > | |
decltype(auto) | update (UpdateFn &&update_fn) |
More complicated case. More... | |
Public Attributes | |
EmplaceFn | m_emplace_fn |
Definition at line 93 of file proxy-types.h.
|
inline |
Definition at line 95 of file proxy-types.h.
|
inline |
Simple case.
If ReadField implementation calls this construct() method with constructor arguments, just pass them on to the emplace function.
Definition at line 100 of file proxy-types.h.
|
inline |
More complicated case.
If ReadField implementation works by calling this update() method, adapt it call construct() instead. This requires LocalType to have a default constructor to create new object that can be passed to update()
Definition at line 110 of file proxy-types.h.
EmplaceFn mp::ReadDestEmplace< LocalType, EmplaceFn >::m_emplace_fn |
Definition at line 126 of file proxy-types.h.