Creating a sub-tuple starting from a std::tuple<some_types…>
问题 Let us suppose that a std::tuple<some_types...> is given. I would like to create a new std::tuple whose types are the ones indexed in [0, sizeof...(some_types) - 2] . For instance, let's suppose that the starting tuple is std::tuple<int, double, bool> . I would like to obtain a sub-tuple defined as std::tuple<int, double> . I'm quite new to variadic templates. As a first step I tried to write a struct in charge of storing the different types of the original std::tuple with the aim of creating