Changeset 28926 in webkit for trunk/JavaScriptCore/wtf/OwnPtr.h
- Timestamp:
- Dec 20, 2007, 10:06:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/OwnPtr.h
r25934 r28926 93 93 template <typename T> inline void swap(OwnPtr<T>& a, OwnPtr<T>& b) { a.swap(b); } 94 94 95 template <typename T, typename U> inline bool operator==(const OwnPtr<T>& a, U* b) 96 { 97 return a.get() == b; 98 } 99 100 template <typename T, typename U> inline bool operator==(T* a, const OwnPtr<U>& b) 101 { 102 return a == b.get(); 103 } 104 105 template <typename T, typename U> inline bool operator!=(const OwnPtr<T>& a, U* b) 106 { 107 return a.get() != b; 108 } 109 110 template <typename T, typename U> inline bool operator!=(T* a, const OwnPtr<U>& b) 111 { 112 return a != b.get(); 113 } 114 95 115 template <typename T> inline typename OwnPtr<T>::PtrType getPtr(const OwnPtr<T>& p) 96 116 {
Note:
See TracChangeset
for help on using the changeset viewer.