mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-02 16:16:19 +08:00
26 lines
571 B
C++
26 lines
571 B
C++
#ifndef RFL_INTERNAL_ISDEFAULTIFMISSING_HPP_
|
|
#define RFL_INTERNAL_ISDEFAULTIFMISSING_HPP_
|
|
|
|
#include <type_traits>
|
|
|
|
#include "../DefaultIfMissing.hpp"
|
|
|
|
namespace rfl::internal {
|
|
|
|
template <class T>
|
|
class is_default_if_missing;
|
|
|
|
template <class T>
|
|
class is_default_if_missing : public std::false_type {};
|
|
|
|
template <>
|
|
class is_default_if_missing<DefaultIfMissing> : public std::true_type {};
|
|
|
|
template <class T>
|
|
constexpr bool is_default_if_missing_v =
|
|
is_default_if_missing<std::remove_cvref_t<std::remove_pointer_t<T>>>::value;
|
|
|
|
} // namespace rfl::internal
|
|
|
|
#endif
|