mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Included the meta field retrieval
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user