![]() |
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 68 of file proxy-types.h.
|
inline |
Definition at line 70 of file proxy-types.h.
|
inline |
Simple case.
If ReadField impementation calls this construct() method with constructor arguments, just pass them on to the emplace function.
Definition at line 75 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 85 of file proxy-types.h.
EmplaceFn& mp::ReadDestEmplace< LocalType, EmplaceFn >::m_emplace_fn |
Definition at line 101 of file proxy-types.h.