• Kenton Varda's avatar
    Add tuple helpers indexOfType<>() and TypeOfIndex<>. · e92382a4
    Kenton Varda authored
    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.
    e92382a4
tuple-test.c++ 3.49 KB