Searched refs:SimpleSmartPointer (Results 1 – 2 of 2) sorted by relevance
29 struct SimpleSmartPointer { struct32 explicit SimpleSmartPointer(T *p = 0) : ptr(p) {} in SimpleSmartPointer() function33 ~SimpleSmartPointer() { in ~SimpleSmartPointer() argument39 SimpleSmartPointer<int> a((int *)malloc(4)); in test()
204 struct SimpleSmartPointer { struct207 explicit SimpleSmartPointer(T *p = 0) : ptr(p) {} argument208 ~SimpleSmartPointer() {217 SimpleSmartPointer<int> a(new int);221 SimpleSmartPointer<int> a(new int[4]);227 SimpleSmartPointer<int> a(new int);231 SimpleSmartPointer<int> a((int *)malloc(4));