Lines Matching defs:scoped_refptr
8 // Stub scoped_refptr<T> class that supports an implicit cast to T*.
10 class scoped_refptr {
13 scoped_refptr() : ptr_(0) {}
14 scoped_refptr(T* p) : ptr_(p) {}
15 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {}
18 scoped_refptr(const scoped_refptr<U>& r)
21 ~scoped_refptr() {}
27 scoped_refptr<T>& operator=(T* p) {
31 scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
35 scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {