5 #ifndef MP_PROXY_TYPE_OPTIONAL_H 6 #define MP_PROXY_TYPE_OPTIONAL_H 11 template <
typename LocalType,
typename Value,
typename Output>
24 template <
typename LocalType,
typename Input,
typename ReadDest>
31 return read_dest.update([&](
auto& value) {
39 value.emplace(std::forward<decltype(
args)>(
args)...);
47 #endif // MP_PROXY_TYPE_OPTIONAL_H Function parameter type for prioritizing overloaded function calls that would otherwise be ambiguous...
bool CustomHasField(TypeList< LocalTypes... >, InvokeContext &invoke_context, const Input &input)
Return whether to read a C++ value from a Cap'n Proto field.
Generic utility functions used by capnp code.
Destination parameter type that can be passed to ReadField function as an alternative to ReadDestEmpl...
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) requires Unserializable< LocalType
Overload multiprocess library's CustomReadField hook to allow any object with an Unserialize method t...
void CustomBuildField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output) requires Serializable< LocalType
Overload multiprocess library's CustomBuildField hook to allow any serializable object to be stored i...
decltype(auto) ReadField(TypeList< LocalTypes... >, InvokeContext &invoke_context, Input &&input, Args &&... args)