Given a tuple containing elements of distinct types (no two are the same):
typedef std::tuple<bool, char, int, float, double, std::string> t1;
and a tuple type containing elements restricted to those types (duplicates and omissions are possible, but no additional types):
typedef std::tuple<char, int, int, double, std::string, int, double> t2;
How can I construct a std::array containing the indices of the matching element in t1 for the elements in t2?
{1, 2, 2, 4, 5, 2, 4}