get part of std::tuple
With help of a compile-time integer list: #include <cstdlib> template <size_t… n> struct ct_integers_list { template <size_t m> struct push_back { typedef ct_integers_list<n…, m> type; }; }; template <size_t max> struct ct_iota_1 { typedef typename ct_iota_1<max-1>::type::template push_back<max>::type type; }; template <> struct ct_iota_1<0> { typedef ct_integers_list<> type; }; We could construct the tail simply by … Read more