Home | History | Annotate | Download | only in base

Lines Matching refs:Traits

36 // standard copyable semantics and have a specific "invalid" value. The traits
43 // // for stateful traits.
55 template<typename T, typename Traits>
66 struct Data : public Traits {
68 Data(const T& in, const Traits& other) : Traits(other), generic(in) {}
74 typedef Traits traits_type;
82 // Constructor. Allows initialization of a stateful traits object.
83 ScopedGeneric(const element_type& value, const traits_type& traits)
84 : data_(value, traits) {
88 ScopedGeneric(ScopedGeneric<T, Traits>&& rvalue)
97 ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rvalue) {
117 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_));
143 Traits& get_traits() { return data_; }
144 const Traits& get_traits() const { return data_; }
165 template<class T, class Traits>
166 void swap(const ScopedGeneric<T, Traits>& a,
167 const ScopedGeneric<T, Traits>& b) {
171 template<class T, class Traits>
172 bool operator==(const T& value, const ScopedGeneric<T, Traits>& scoped) {
176 template<class T, class Traits>
177 bool operator!=(const T& value, const ScopedGeneric<T, Traits>& scoped) {