Add tuple helpers indexOfType<>() and TypeOfIndex<>.
indexOfType<T, Tuple<...>>() searches the Tuple for a member of type T and returns its index. It fails to compile if there is not exactly one match. TypeOfIndex<i, Tuple<...>> evaluates to the type of the Tuple member at the given index.
Showing
Please
register
or
sign in
to comment