| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_SCOPED_PTR_H__ | 5 #ifndef BASE_SCOPED_PTR_H__ |
| 6 #define BASE_SCOPED_PTR_H__ | 6 #define BASE_SCOPED_PTR_H__ |
| 7 | 7 |
| 8 // This is an implementation designed to match the anticipated future TR2 | 8 // This is an implementation designed to match the anticipated future TR2 |
| 9 // implementation of the scoped_ptr class, and its closely-related brethren, | 9 // implementation of the scoped_ptr class, and its closely-related brethren, |
| 10 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr. | 10 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr. |
| 11 // | 11 // |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 bool operator==(C* p, const scoped_ptr_malloc<C, FP>& b) { | 419 bool operator==(C* p, const scoped_ptr_malloc<C, FP>& b) { |
| 420 return p == b.get(); | 420 return p == b.get(); |
| 421 } | 421 } |
| 422 | 422 |
| 423 template<class C, class FP> inline | 423 template<class C, class FP> inline |
| 424 bool operator!=(C* p, const scoped_ptr_malloc<C, FP>& b) { | 424 bool operator!=(C* p, const scoped_ptr_malloc<C, FP>& b) { |
| 425 return p != b.get(); | 425 return p != b.get(); |
| 426 } | 426 } |
| 427 | 427 |
| 428 #endif // BASE_SCOPED_PTR_H__ | 428 #endif // BASE_SCOPED_PTR_H__ |
| OLD | NEW |