#include #include int main () { cruft::TAP::logger tap; { using a_t = cruft::tuple::index::indices<0,1,2>; using b_t = cruft::tuple::index::indices<4,3>; using result_t = cruft::tuple::index::cat::type; using expected_t = cruft::tuple::index::indices<0,1,2,4,3>; tap.expect (std::is_same_v, "index concatenation"); } { using indices_t = cruft::tuple::index::make_indices<4>::type; using expected_t = cruft::tuple::index::indices<0,1,2,3>; tap.expect (std::is_same_v, "index sequence creation"); } { using indices_t = cruft::tuple::index::make_reverse_t<4>; using expected_t = cruft::tuple::index::indices<3,2,1,0>; tap.expect (std::is_same_v, "reverse index sequence creation"); } return tap.status (); }