Files
reflect-cpp/include/rfl/internal/tuple_t.hpp
T

29 lines
564 B
C++

#ifndef RFL_INTERNAL_TUPLE_T_HPP_
#define RFL_INTERNAL_TUPLE_T_HPP_
#include <functional>
#include <tuple>
#include <type_traits>
#include "rfl/internal/ptr_tuple_t.hpp"
#include "rfl/to_named_tuple.hpp"
namespace rfl {
namespace internal {
template <class T>
struct remove_ptrs_tup;
template <class... Ts>
struct remove_ptrs_tup<std::tuple<Ts...>> {
using TupleType = std::tuple<std::remove_pointer_t<Ts>...>;
};
template <class T>
using tuple_t = typename remove_ptrs_tup<ptr_tuple_t<T>>::TupleType;
} // namespace internal
} // namespace rfl
#endif