Home | History | Annotate | Download | only in src

Lines Matching refs:SmartArrayPointer

38 class SmartArrayPointer {
41 inline SmartArrayPointer() : p_(NULL) {}
44 explicit inline SmartArrayPointer(T* ptr) : p_(ptr) {}
48 inline SmartArrayPointer(const SmartArrayPointer<T>& rhs) : p_(rhs.p_) {
49 const_cast<SmartArrayPointer<T>&>(rhs).p_ = NULL;
55 inline ~SmartArrayPointer() { if (p_) DeleteArray(p_); }
69 // returning an SmartArrayPointer<T> and then get errors wherever it is used.
81 // Assignment requires an empty (NULL) SmartArrayPointer as the receiver. Like
84 inline SmartArrayPointer& operator=(const SmartArrayPointer<T>& rhs) {
87 const_cast<SmartArrayPointer<T>&>(rhs).p_ = NULL;