Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
utils.hpp
1// Copyright 2021 Arnaud Becheler <abechele@umich.edu>
2
10
11#ifndef QUETZAL_TREE_UTILS_H_INCLUDED
12#define QUETZAL_TREE_UTILS_H_INCLUDED
13
14#include <tuple>
15
17{
18// Get a new tuple containing all but first element of a tuple
19template <typename T1, typename... Ts> std::tuple<Ts...> unshift_tuple(const std::tuple<T1, Ts...> &tuple)
20{
21 return std::apply([](auto &&, const auto &...args) { return std::tie(args...); }, tuple);
22}
23
24} // namespace quetzal::coalescence::detail
25
26#endif
Definition binary_tree.hpp:37