Included the meta field retrieval

This commit is contained in:
Patrick Urbanke
2023-12-08 00:13:14 +01:00
parent 385f6434c5
commit 2c761efdcd
9 changed files with 128 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef RFL_FIELDS_HPP_
#define RFL_FIELDS_HPP_
#include "internal/get_meta_fields.hpp"
#include "rfl/internal/get_meta_fields.hpp"
#include "rfl/named_tuple_t.hpp"
namespace rfl {
/// Returns meta-information about the fields.
template <class T>
auto fields() {
return internal::get_meta_fields<named_tuple_t<T>>();
}
} // namespace rfl
#endif