Home | History | Annotate | Download | only in internal

Lines Matching refs:p2

109   void swap(scoped_ptr& p2) {
111 ptr_ = p2.ptr_;
112 p2.ptr_ = tmp;
136 template <class C2> bool operator==(scoped_ptr<C2> const& p2) const;
137 template <class C2> bool operator!=(scoped_ptr<C2> const& p2) const;
146 inline void swap(scoped_ptr<C>& p1, scoped_ptr<C>& p2) {
147 p1.swap(p2);
151 inline bool operator==(const C* p1, const scoped_ptr<C>& p2) {
152 return p1 == p2.get();
156 inline bool operator==(const C* p1, const scoped_ptr<const C>& p2) {
157 return p1 == p2.get();
161 inline bool operator!=(const C* p1, const scoped_ptr<C>& p2) {
162 return p1 != p2.get();
166 inline bool operator!=(const C* p1, const scoped_ptr<const C>& p2) {
167 return p1 != p2.get();
243 void swap(scoped_array& p2) {
245 array_ = p2.array_;
246 p2.array_ = tmp;
264 template <class C2> bool operator==(scoped_array<C2> const& p2) const;
265 template <class C2> bool operator!=(scoped_array<C2> const& p2) const;
274 inline void swap(scoped_array<C>& p1, scoped_array<C>& p2) {
275 p1.swap(p2);
279 inline bool operator==(const C* p1, const scoped_array<C>& p2) {
280 return p1 == p2.get();
284 inline bool operator==(const C* p1, const scoped_array<const C>& p2) {
285 return p1 == p2.get();
289 inline bool operator!=(const C* p1, const scoped_array<C>& p2) {
290 return p1 != p2.get();
294 inline bool operator!=(const C* p1, const scoped_array<const C>& p2) {
295 return p1 != p2.get();