Lines Matching refs:operator

30         return static_cast<T*>(::operator new(n*sizeof(T)));  in allocate()
35 return ::operator delete(static_cast<void*>(p)); in deallocate()
38 friend bool operator==(bare_allocator, bare_allocator) {return true;}
39 friend bool operator!=(bare_allocator x, bare_allocator y) {return !(x == y);}
63 explicit operator bool() const {return ptr_ != nullptr;}
65 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
66 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);}
85 explicit operator bool() const {return ptr_ != nullptr;}
87 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
88 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);}
103 explicit operator bool() const {return ptr_ != nullptr;}
111 reference operator*() const {return *ptr_;}
112 pointer operator->() const {return ptr_;}
114 min_pointer& operator++() {++ptr_; return *this;}
115 min_pointer operator++(int) {min_pointer tmp(*this); ++ptr_; return tmp;}
117 min_pointer& operator--() {--ptr_; return *this;}
118 min_pointer operator--(int) {min_pointer tmp(*this); --ptr_; return tmp;}
120 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
121 min_pointer& operator-=(difference_type n) {ptr_ -= n; return *this;}
123 min_pointer operator+(difference_type n) const
130 friend min_pointer operator+(difference_type n, min_pointer x)
135 min_pointer operator-(difference_type n) const
142 friend difference_type operator-(min_pointer x, min_pointer y)
147 reference operator[](difference_type n) const {return ptr_[n];}
149 friend bool operator< (min_pointer x, min_pointer y) {return x.ptr_ < y.ptr_;}
150 friend bool operator> (min_pointer x, min_pointer y) {return y < x;}
151 friend bool operator<=(min_pointer x, min_pointer y) {return !(y < x);}
152 friend bool operator>=(min_pointer x, min_pointer y) {return !(x < y);}
156 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
157 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);}
174 explicit operator bool() const {return ptr_ != nullptr;}
182 reference operator*() const {return *ptr_;}
183 pointer operator->() const {return ptr_;}
185 min_pointer& operator++() {++ptr_; return *this;}
186 min_pointer operator++(int) {min_pointer tmp(*this); ++ptr_; return tmp;}
188 min_pointer& operator--() {--ptr_; return *this;}
189 min_pointer operator--(int) {min_pointer tmp(*this); --ptr_; return tmp;}
191 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
192 min_pointer& operator-=(difference_type n) {ptr_ -= n; return *this;}
194 min_pointer operator+(difference_type n) const
201 friend min_pointer operator+(difference_type n, min_pointer x)
206 min_pointer operator-(difference_type n) const
213 friend difference_type operator-(min_pointer x, min_pointer y)
218 reference operator[](difference_type n) const {return ptr_[n];}
220 friend bool operator< (min_pointer x, min_pointer y) {return x.ptr_ < y.ptr_;}
221 friend bool operator> (min_pointer x, min_pointer y) {return y < x;}
222 friend bool operator<=(min_pointer x, min_pointer y) {return !(y < x);}
223 friend bool operator>=(min_pointer x, min_pointer y) {return !(x < y);}
227 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;}
228 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);}
235 operator==(min_pointer<T> x, std::nullptr_t)
243 operator==(std::nullptr_t, min_pointer<T> x)
251 operator!=(min_pointer<T> x, std::nullptr_t)
259 operator!=(std::nullptr_t, min_pointer<T> x)
277 return pointer(static_cast<T*>(::operator new(n*sizeof(T)))); in allocate()
282 return ::operator delete(p.ptr_); in deallocate()
285 friend bool operator==(min_allocator, min_allocator) {return true;}
286 friend bool operator!=(min_allocator x, min_allocator y) {return !(x == y);}