1#ifndef ENTT_META_POLICY_HPP
2#define ENTT_META_POLICY_HPP
20 static constexpr bool value =
true;
25struct as_void_t final:
private internal::meta_policy {
28 static constexpr bool value =
true;
33struct as_ref_t final:
private internal::meta_policy {
35 template<
typename Type>
36 static constexpr bool value = std::is_reference_v<Type> && !std::is_const_v<std::remove_reference_t<Type>>;
41struct as_cref_t final:
private internal::meta_policy {
43 template<
typename Type>
44 static constexpr bool value = std::is_reference_v<Type>;
49struct as_is_t final:
private internal::meta_policy {
52 static constexpr bool value =
true;
61template<
typename Type>
63 : std::bool_constant<std::is_base_of_v<internal::meta_policy, Type>> {};
69template<
typename Type>
constexpr bool is_meta_policy_v
Helper variable template.
Empty class type used to request the as cref policy.
Empty class type used to request the as auto policy.
Empty class type used to request the as ref policy.
Empty class type used to request the as-is policy.
Empty class type used to request the as void policy.