diff --git a/beluga/include/beluga/tuple_vector.hpp b/beluga/include/beluga/tuple_vector.hpp index 8a4269e87..5819bcf51 100644 --- a/beluga/include/beluga/tuple_vector.hpp +++ b/beluga/include/beluga/tuple_vector.hpp @@ -19,12 +19,11 @@ #include #include +#include #include #include #include #include -#include -#include /** * \file @@ -33,32 +32,6 @@ namespace beluga { -namespace detail { - -/// Utility type to standardize the zip output to always dereference in tuples and not in pairs. -struct as_common_tuple_fn { - /// Overload that takes a common_tuple. - template - constexpr auto operator()(ranges::common_tuple tuple) const { - return tuple; - } - - /// Overload that takes a common_pair and forwards the values as a common_tuple. - template - constexpr auto operator()(ranges::common_pair pair) const { - return std::apply( - [](auto&&... values) { - return ranges::common_tuple{std::forward(values)...}; // - }, - pair); - } -}; - -} // namespace detail - -/// Utility to standardize the zip output to always dereference in tuples and not in pairs. -inline constexpr detail::as_common_tuple_fn as_common_tuple; - /// Primary template for a tuple of containers. template