Lines Matching defs:value
19 // object has some kind of "invalid" value.
34 // standard copyable semantics and have a specific "invalid" value. The traits
35 // must define a free function and also the invalid value to assign for
76 explicit ScopedGeneric(const element_type& value) : data_(value) {}
79 ScopedGeneric(const element_type& value, const traits_type& traits)
80 : data_(value, traits) {}
97 void reset(const element_type& value = traits_type::InvalidValue()) {
98 if (data_.generic != traits_type::InvalidValue() && data_.generic == value)
101 data_.generic = value;
113 // Release the object. The return value is the current object held by this
114 // object. After this operation, this object will hold a null value, and
131 // Returns true if this object doesn't hold the special null value for the
135 bool operator==(const element_type& value) const {
136 return data_.generic == value;
138 bool operator!=(const element_type& value) const {
139 return data_.generic != value;
174 bool operator==(const T& value, const ScopedGeneric<T, Traits>& scoped) {
175 return value == scoped.get();
179 bool operator!=(const T& value, const ScopedGeneric<T, Traits>& scoped) {
180 return value != scoped.get();