undo removal of right_of_impl

This commit is contained in:
ado 2021-01-06 19:41:39 +01:00
parent 7ea33c80e2
commit f2cc7265b6

View File

@ -57,6 +57,14 @@ using head_t = typename left_of_impl<0, Ts...>::type;
// tup tail/last // tup tail/last
//////////////// ////////////////
template <size_t N, typename T, typename... Ts>
struct right_of_impl;
template <size_t N, typename T, typename... Ts>
struct right_of_impl {
using type = typename right_of_impl<N - 1, Ts...>::type;
};
template <typename T, typename... Ts> template <typename T, typename... Ts>
struct right_of_impl<0, T, Ts...> { struct right_of_impl<0, T, Ts...> {
using type = std::tuple<T, Ts...>; using type = std::tuple<T, Ts...>;