reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1126 typedef T element_type; 1128 explicit scoped_ptr(T* p = NULL) : ptr_(p) {} 1131 T& operator*() const { return *ptr_; } 1132 T* operator->() const { return ptr_; } 1133 T* get() const { return ptr_; } 1135 T* release() { 1136 T* const ptr = ptr_; 1141 void reset(T* p = NULL) { 1143 if (IsTrue(sizeof(T) > 0)) { // Makes sure T is a complete type. 1156 T* ptr_;