refcnt.hh (7057:ca72ee5978ce) refcnt.hh (7810:3a790012d6ed)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 95 unchanged lines hidden (view full) ---

104bool operator==(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r)
105{ return l.get() == r.get(); }
106
107template<class T>
108bool operator==(const RefCountingPtr<T> &l, const T *r)
109{ return l.get() == r; }
110
111template<class T>
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 95 unchanged lines hidden (view full) ---

104bool operator==(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r)
105{ return l.get() == r.get(); }
106
107template<class T>
108bool operator==(const RefCountingPtr<T> &l, const T *r)
109{ return l.get() == r; }
110
111template<class T>
112bool operator==(const T &l, const RefCountingPtr<T> &r)
112bool operator==(const T *l, const RefCountingPtr<T> &r)
113{ return l == r.get(); }
114
115template<class T>
116bool operator!=(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r)
117{ return l.get() != r.get(); }
118
119template<class T>
120bool operator!=(const RefCountingPtr<T> &l, const T *r)
121{ return l.get() != r; }
122
123template<class T>
113{ return l == r.get(); }
114
115template<class T>
116bool operator!=(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r)
117{ return l.get() != r.get(); }
118
119template<class T>
120bool operator!=(const RefCountingPtr<T> &l, const T *r)
121{ return l.get() != r; }
122
123template<class T>
124bool operator!=(const T &l, const RefCountingPtr<T> &r)
124bool operator!=(const T *l, const RefCountingPtr<T> &r)
125{ return l != r.get(); }
126
127#endif // __BASE_REFCNT_HH__
125{ return l != r.get(); }
126
127#endif // __BASE_REFCNT_HH__