rfl::UnderlyingEnums (#186)

* First part

* Plural

* Update rfl.hpp

* Documentation

* Update rfl.hpp

* Update processors.md

* underlying_enums test

* Update Parser_default.hpp

* Fix typo in test
This commit is contained in:
AnsiV01
2024-09-12 09:37:31 +02:00
committed by GitHub
parent 7274a2eb47
commit dfc24ad932
7 changed files with 124 additions and 7 deletions
@@ -0,0 +1,29 @@
#ifndef RFL_INTERNAL_ISUNDERLYINGENUMS_HPP_
#define RFL_INTERNAL_ISUNDERLYINGENUMS_HPP_
#include <tuple>
#include <type_traits>
#include <utility>
#include "../UnderlyingEnums.hpp"
namespace rfl {
namespace internal {
template <class T>
class is_underlying_enums;
template <class T>
class is_underlying_enums : public std::false_type {};
template <>
class is_underlying_enums<UnderlyingEnums> : public std::true_type {};
template <class T>
constexpr bool is_underlying_enums_v =
is_underlying_enums<std::remove_cvref_t<std::remove_pointer_t<T>>>::value;
} // namespace internal
} // namespace rfl
#endif