5#ifndef MP_PROXY_TYPE_TUPLE_H
6#define MP_PROXY_TYPE_TUPLE_H
12template <
typename KeyLocalType,
typename ValueLocalType,
typename Value,
typename Output>
19 auto pair = output.init();
20 using Accessors =
typename ProxyStruct<
typename decltype(pair)::Builds>::Accessors;
26template <
typename KeyLocalType,
typename ValueLocalType,
typename Input,
typename ReadDest>
33 return read_dest.update([&](
auto& value) {
34 const auto& pair = input.get();
36 using Accessors =
typename Struct::Accessors;
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...
Class< Types..., std::remove_reference_t< Args >... > Make(Args &&... args)
Construct a template class value by deducing template arguments from the types of constructor argumen...
decltype(auto) ReadField(TypeList< LocalTypes... >, Args &&... args)
std::decay_t< T > Decay
Type helper abbreviating std::decay.
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.
Mapping from capnp struct type to struct traits (specializations are generated by proxy-codegen....
Destination parameter type that can be passed to ReadField function as an alternative to ReadDestEmpl...
Generic utility functions used by capnp code.