Files
reflect-cpp/include/rfl/internal/is_underlying_enums_v.hpp
T
AnsiV01 dfc24ad932 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
2024-09-12 09:37:31 +02:00

30 lines
619 B
C++

#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