2024-05-31 22:59:00 -04:00
|
|
|
#ifndef RFL_FIELD_NAMES_T_HPP_
|
|
|
|
#define RFL_FIELD_NAMES_T_HPP_
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
#include "internal/get_field_names.hpp"
|
|
|
|
|
|
|
|
namespace rfl {
|
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
/// Returns a rfl::Literal containing the field names of struct T.
|
|
|
|
template <class T>
|
|
|
|
using field_names_t = typename std::invoke_result<
|
|
|
|
decltype(internal::get_field_names<std::remove_cvref_t<T>>)>::type;
|
2024-05-31 22:59:00 -04:00
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
} // namespace rfl
|
2024-05-31 22:59:00 -04:00
|
|
|
|
|
|
|
#endif
|