draconisplusplus/include/rfl/fields.hpp

18 lines
314 B
C++
Raw Normal View History

2024-05-31 22:59:00 -04:00
#ifndef RFL_FIELDS_HPP_
#define RFL_FIELDS_HPP_
#include "internal/get_meta_fields.hpp"
#include "named_tuple_t.hpp"
namespace rfl {
2024-06-08 14:10:59 -04:00
/// Returns meta-information about the fields.
template <class T>
auto fields() {
return internal::get_meta_fields<named_tuple_t<T>>();
}
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