draconisplusplus/include/rfl/name_t.hpp

15 lines
268 B
C++
Raw Normal View History

2024-05-31 22:59:00 -04:00
#ifndef RFL_NAME_T_HPP_
#define RFL_NAME_T_HPP_
#include <type_traits>
namespace rfl {
2024-06-08 14:10:59 -04:00
/// Convenience class to retrieve the name of a field.
template <class FieldType>
using name_t = typename std::remove_cvref_t<FieldType>::Name;
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