5#ifndef MP_PROXY_TYPE_OPTIONAL_H
6#define MP_PROXY_TYPE_OPTIONAL_H
11template <
typename LocalType,
typename Value,
typename Output>
25template <
typename LocalType,
typename Input,
typename ReadDest>
32 return read_dest.update([&](
auto& value) {
40 value.emplace(std::forward<
decltype(
args)>(
args)...);
Functions to serialize / deserialize common bitcoin types.
void BuildField(TypeList< LocalTypes... >, Context &context, Output &&output, Values &&... values)
decltype(auto) CustomReadField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Input &&input, ReadDest &&read_dest)
Overload multiprocess library's CustomReadField hook to allow any object with an Unserialize method t...
decltype(auto) ReadField(TypeList< LocalTypes... >, Args &&... args)
void CustomBuildField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output)
Overload multiprocess library's CustomBuildField hook to allow any serializable object to be stored i...
Function parameter type for prioritizing overloaded function calls that would otherwise be ambiguous.
Destination parameter type that can be passed to ReadField function as an alternative to ReadDestEmpl...
Generic utility functions used by capnp code.