Lines Matching refs:p_
31 explicit scoped_ptr(T * p = 0) : p_(p) {} in p_() function
32 ~scoped_ptr() { delete p_; } in ~scoped_ptr() local
35 if (p == p_)
37 delete p_; variable
38 p_ = p;
41 T & operator*() const { return *p_; }
42 T * operator->() const { return p_; }
43 T * get() const { return p_; } in get()
46 T * tmp = sp.p_; in swap()
47 sp.p_ = p_; in swap()
48 p_ = tmp; in swap()
54 T * p_; variable
59 explicit scoped_array(T * p = 0) : p_(p) {} in p_() function
60 ~scoped_array() { delete [] p_; } in ~scoped_array()
63 if (p == p_)
65 delete [] p_;
66 p_ = p;
69 T & operator[](std::ptrdiff_t i) const { return p_[i]; }
70 T * get() const { return p_; } in get()
73 T * tmp = sp.p_; in swap()
74 sp.p_ = p_; in swap()
75 p_ = tmp; in swap()
81 T * p_; variable