template<size_t N, class T>
Rodin::Utility::Repeat struct

Metafunction to create a Tuple with N repetitions of type T.

Template parameters
N The number of repetitions (N > 1).
T The type to repeat.

General case for N > 1.

Repeat creates a Tuple containing N copies of type T. This is useful for generating homogeneous tuple types at compile time.

Example usage:

using ThreeInts = Repeat<3, int>::Type;
// ThreeInts is Tuple<int, int, int>

Recursively concatenates Tuple<T> with Repeat<N-1, T>Type.