Searched defs:SmartPointer (Results 1 - 1 of 1) sorted by relevance
/external/v8/src/ | ||
H A D | smart-pointer.h | 38 class SmartPointer { class in namespace:v8::internal 42 inline SmartPointer() : p(NULL) {} function in class:v8::internal::SmartPointer 46 explicit inline SmartPointer(T* pointer) : p(pointer) {} function in class:v8::internal::SmartPointer 51 inline SmartPointer(const SmartPointer<T>& rhs) : p(rhs.p) { function in class:v8::internal::SmartPointer 52 const_cast<SmartPointer<T>&>(rhs).p = NULL; 59 inline ~SmartPointer() { if (p) DeleteArray(p); } 73 // returning an SmartPointer<T> and then get errors wherever it is used. 86 // Assignment requires an empty (NULL) SmartPointer as the receiver. Like 89 inline SmartPointer [all...] |
Completed in 133 milliseconds