Lines Matching defs:Ptr
23 // IUnknown (but no QueryInterface). Use a Ptr<> based smart pointer to hold
29 // Ptr<Foo> obj = new Foo(); // ref count = 1
33 // typedef Ptr<Foo> FooPtr; // common short-hand notation
177 class Ptr {
179 Ptr() : p_(NULL) {
184 Ptr(T* pT) : p_(NULL) {
188 Ptr(const Ptr<T>& p) : p_(NULL) {
192 ~Ptr() {
212 T* operator=(const Ptr<T>& p) {
235 bool operator<(const Ptr<T>& p) const {