1#ifndef CODEX_REFLECTION_FIELDS_HPP
2#define CODEX_REFLECTION_FIELDS_HPP
15template<
typename T, std::size_t ...N>
17 return sizeof...(N) - 1;
27template<
typename T, std::size_t ...N>
28requires(
requires {
T{detail::to_any<N>{}...}; })
37 return detail::field_tuple_impl<n>{}(std::forward<T>(
t));
#define T(f, T, C)
Definition bench.cpp:136
decltype(field_tuple(std::declval< T >())) field_tuple_t
Alias of the tuple type returned by field_tuple for type T.
Definition fields.hpp:42
constexpr std::size_t field_count(void)
Number of fields in the struct T.
Definition fields.hpp:16
auto field_tuple(T &&t)
Constructs a tuple of references to each field of T, in order.
Definition fields.hpp:35
codex::refl::field_tuple_t< E > T
Definition soa.cpp:9
#define t(a)
Definition std2.c:10