Lines Matching refs:scoped_ptr_malloc
17 // scoped_ptr_malloc added in by Google. When one of
19 // calls free(). scoped_ptr_malloc<char> is likely to see much more
188 // scoped_ptr_malloc<> is similar to scoped_ptr<>, but it accepts a
191 template<typename T, void (*FF)(void*) = free> class scoped_ptr_malloc {
196 scoped_ptr_malloc(scoped_ptr_malloc const &);
197 scoped_ptr_malloc & operator=(scoped_ptr_malloc const &);
203 explicit scoped_ptr_malloc(T* p = 0): ptr(p) {}
205 ~scoped_ptr_malloc() {
230 void swap(scoped_ptr_malloc & b) {
252 void swap(scoped_ptr_malloc<T,FF>& a, scoped_ptr_malloc<T,FF>& b) {