qualifier_flags.hpp
Go to the documentation of this file.
111 template<typename T> struct flag_map<T const> { static constexpr qualifier_flags value = const_; };
112 template<typename T> struct flag_map<T const &> { static constexpr qualifier_flags value = const_ | lref_; };
113 template<typename T> struct flag_map<T const &&> { static constexpr qualifier_flags value = const_ | rref_; };
114 template<typename T> struct flag_map<T volatile> { static constexpr qualifier_flags value = volatile_; };
115 template<typename T> struct flag_map<T volatile &> { static constexpr qualifier_flags value = volatile_ | lref_; };
116 template<typename T> struct flag_map<T volatile &&> { static constexpr qualifier_flags value = volatile_ | rref_; };
117 template<typename T> struct flag_map<T const volatile> { static constexpr qualifier_flags value = const_ | volatile_; };
118 template<typename T> struct flag_map<T const volatile &> { static constexpr qualifier_flags value = const_ | volatile_ | lref_; };
119 template<typename T> struct flag_map<T const volatile &&> { static constexpr qualifier_flags value = const_ | volatile_ | rref_; };
constexpr qualifier_flags volatile_
Definition: qualifier_flags.hpp:50
constexpr qualifier_flags rref_
Definition: qualifier_flags.hpp:66
constexpr qualifier_flags const_
Definition: qualifier_flags.hpp:46
std::integral_constant< qualifier_flags,(std::is_const< T >::value ? const_ :default_)|(std::is_volatile< T >::value ? volatile_ :default_)> cv_of
Definition: qualifier_flags.hpp:87
std::integral_constant< qualifier_flags, std::is_rvalue_reference< T >::value ? rref_ :(std::is_lvalue_reference< T >::value ? lref_ :default_)> ref_of
Definition: qualifier_flags.hpp:93
std::integral_constant< qualifier_flags, Flags &~const_ > remove_const_flag
Definition: qualifier_flags.hpp:74
constexpr qualifier_flags lref_
Definition: qualifier_flags.hpp:61
std::uint32_t qualifier_flags
Definition: qualifier_flags.hpp:18
std::integral_constant< qualifier_flags, !AlreadyHasRef ?(Existing|Other) :(AlreadyHasLRef ?(Existing|(Other &~rref_)) :(IsAddingLRef ?((Existing &~rref_)|Other) :(Existing|Other)))> collapse_flags
Definition: qualifier_flags.hpp:106
constexpr qualifier_flags default_
Definition: qualifier_flags.hpp:42
std::integral_constant< qualifier_flags, Flags &~volatile_ > remove_volatile_flag
Definition: qualifier_flags.hpp:82
std::integral_constant< bool,(Flags &const_) !=0 > is_const
Definition: qualifier_flags.hpp:78
Definition: add_member_const.hpp:14
static constexpr qualifier_flags value
Definition: qualifier_flags.hpp:108