EnTT  3.10.0
policy.hpp
1 #ifndef ENTT_META_POLICY_HPP
2 #define ENTT_META_POLICY_HPP
3 
4 #include <type_traits>
5 
6 namespace entt {
7 
9 struct as_ref_t {
14  template<typename Type>
15  static constexpr bool value = std::is_reference_v<Type> && !std::is_const_v<std::remove_reference_t<Type>>;
20 };
21 
23 struct as_cref_t {
28  template<typename Type>
29  static constexpr bool value = std::is_reference_v<Type>;
34 };
35 
37 struct as_is_t {
42  template<typename>
43  static constexpr bool value = true;
48 };
49 
51 struct as_void_t {
56  template<typename>
57  static constexpr bool value = true;
62 };
63 
64 } // namespace entt
65 
66 #endif
EnTT default namespace.
Definition: dense_map.hpp:22
Empty class type used to request the as cref policy.
Definition: policy.hpp:23
Empty class type used to request the as-is policy.
Definition: policy.hpp:37
Empty class type used to request the as ref policy.
Definition: policy.hpp:9
Empty class type used to request the as void policy.
Definition: policy.hpp:51