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.
std::decay_t< T > Decay
Type helper abbreviating std::decay.
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)
Class< Types..., std::remove_reference_t< Args >... > Make(Args &&... args)
decltype(auto) ReadField(TypeList< LocalTypes... >, InvokeContext &invoke_context, Input &&input, Args &&... args)
void CustomBuildField(TypeList< LocalType >, Priority< 1 >, InvokeContext &invoke_context, Value &&value, Output &&output)
Mapping from capnp struct type to struct traits (specializations are generated by proxy-codegen....
Generic utility functions used by capnp code.