Zip

Metafunction to combine two Tuples element-wise using a binary template.

template <
  class ... _1>
struct Zip;

Specializations

SpecializationDescription
Tuple<Ts...>, Tuple<Gs...>
Full specialization
template <
  class ... Ts,
  class ... Gs>
struct Zip<
  Tuple< Ts... >,
  Tuple< Gs... >>;
Specialization for two Tuples.

Zip takes two Tuple types of equal size and a binary template Pair, and produces a new Tuple where each element is Pair<Ti, Gi> for corresponding elements Ti from the first tuple and Gi from the second.