1#ifndef ENTT_META_POLICY_HPP
2#define ENTT_META_POLICY_HPP
11 template<
typename Type>
12 static constexpr bool value = std::is_reference_v<Type> && !std::is_const_v<std::remove_reference_t<Type>>;
19 template<
typename Type>
20 static constexpr bool value = std::is_reference_v<Type>;
28 static constexpr bool value =
true;
36 static constexpr bool value =
true;
45template<
typename Type>
47 : std::bool_constant<std::is_same_v<Type, as_ref_t> || std::is_same_v<Type, as_cref_t> || std::is_same_v<Type, as_is_t> || std::is_same_v<Type, as_void_t>> {};
53template<
typename Type>
constexpr Type make_obj_using_allocator(const Allocator &allocator, Args &&...args)
Uses-allocator construction utility (waiting for C++20).
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-is policy.
Empty class type used to request the as ref policy.
Empty class type used to request the as void policy.