VIPRA Documentation
Loading...
Searching...
No Matches
tuple_tail.hpp
1#pragma once
2
3#include <tuple>
4#include "vipra/util/get_nth_value.hpp"
5namespace VIPRA::Util {
6
15template <typename head, typename... tail>
16constexpr auto tuple_tail(const std::tuple<head, tail...>& tuple) -> std::tuple<tail...>
17{
18 return std::apply([](auto&&, auto const&... args) { return std::tie(args...); }, tuple);
19}
20} // namespace VIPRA::Util