Home | History | Annotate | Download | only in memory

Lines Matching refs:p2

108   void swap(scoped_ptr& p2) {
110 ptr_ = p2.ptr_;
111 p2.ptr_ = tmp;
131 template <class C2> bool operator==(scoped_ptr<C2> const& p2) const;
132 template <class C2> bool operator!=(scoped_ptr<C2> const& p2) const;
141 void swap(scoped_ptr<C>& p1, scoped_ptr<C>& p2) {
142 p1.swap(p2);
146 bool operator==(C* p1, const scoped_ptr<C>& p2) {
147 return p1 == p2.get();
151 bool operator!=(C* p1, const scoped_ptr<C>& p2) {
152 return p1 != p2.get();
215 void swap(scoped_array& p2) {
217 array_ = p2.array_;
218 p2.array_ = tmp;
236 template <class C2> bool operator==(scoped_array<C2> const& p2) const;
237 template <class C2> bool operator!=(scoped_array<C2> const& p2) const;
246 void swap(scoped_array<C>& p1, scoped_array<C>& p2) {
247 p1.swap(p2);
251 bool operator==(C* p1, const scoped_array<C>& p2) {
252 return p1 == p2.get();
256 bool operator!=(C* p1, const scoped_array<C>& p2) {
257 return p1 != p2.get();