Home | History | Annotate | Download | only in base

Lines Matching refs:Traits

35 // standard copyable semantics and have a specific "invalid" value. The traits
42 // // for stateful traits.
54 template<typename T, typename Traits>
63 struct Data : public Traits {
65 Data(const T& in, const Traits& other) : Traits(other), generic(in) {}
71 typedef Traits traits_type;
79 // Constructor. Allows initialization of a stateful traits object.
80 ScopedGeneric(const element_type& value, const traits_type& traits)
81 : data_(value, traits) {
85 ScopedGeneric(ScopedGeneric<T, Traits>&& rvalue)
94 ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rvalue) {
114 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_));
140 Traits& get_traits() { return data_; }
141 const Traits& get_traits() const { return data_; }
164 template<class T, class Traits>
165 void swap(const ScopedGeneric<T, Traits>& a,
166 const ScopedGeneric<T, Traits>& b) {
170 template<class T, class Traits>
171 bool operator==(const T& value, const ScopedGeneric<T, Traits>& scoped) {
175 template<class T, class Traits>
176 bool operator!=(const T& value, const ScopedGeneric<T, Traits>& scoped) {