mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-29 22:36:19 +08:00
21 lines
501 B
C++
21 lines
501 B
C++
#ifndef RFL_VIEW_T_HPP_
|
|
#define RFL_VIEW_T_HPP_
|
|
|
|
#include <type_traits>
|
|
|
|
#include "Processors.hpp"
|
|
#include "internal/ptr_named_tuple_t.hpp"
|
|
|
|
namespace rfl {
|
|
|
|
/// Generates the named tuple that would be the result of to_view
|
|
template <class T, class... Ps>
|
|
using view_t =
|
|
std::invoke_result_t<decltype(Processors<Ps...>::template process<
|
|
T, internal::ptr_named_tuple_t<T>>),
|
|
internal::ptr_named_tuple_t<T>>;
|
|
|
|
} // namespace rfl
|
|
|
|
#endif
|