Lines Matching defs:ScopedGeneric
35 // For an object to be able to be put into a ScopedGeneric, it must support
54 // typedef ScopedGeneric<int, FooScopedTraits> ScopedFoo;
56 class ScopedGeneric {
57 DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(ScopedGeneric)
76 ScopedGeneric() : data_(traits_type::InvalidValue()) {}
80 explicit ScopedGeneric(const element_type& value) : data_(value) {}
83 ScopedGeneric(const element_type& value, const traits_type& traits)
87 // Move constructor. Allows initialization from a ScopedGeneric rvalue.
88 ScopedGeneric(ScopedGeneric<T, Traits>&& rvalue)
92 ~ScopedGeneric() {
96 // operator=. Allows assignment from a ScopedGeneric rvalue.
97 ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rvalue) {
112 void swap(ScopedGeneric& other) {
158 const ScopedGeneric<T2, Traits2>& p2) const;
160 const ScopedGeneric<T2, Traits2>& p2) const;
166 void swap(const ScopedGeneric<T, Traits>& a,
167 const ScopedGeneric<T, Traits>& b) {
172 bool operator==(const T& value, const ScopedGeneric<T, Traits>& scoped) {
177 bool operator!=(const T& value, const ScopedGeneric<T, Traits>& scoped) {