Home | History | Annotate | Download | only in base

Lines Matching refs:scoped_ptr_malloc

10 //  scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
29 template <class C, class Free> class scoped_ptr_malloc;
284 // passed as a template argument to scoped_ptr_malloc below.
292 // scoped_ptr_malloc<> is similar to scoped_ptr<>, but it accepts a
296 class scoped_ptr_malloc {
307 explicit scoped_ptr_malloc(): ptr_(NULL) { }
311 explicit scoped_ptr_malloc(must_be_C* p): ptr_(p) { }
314 explicit scoped_ptr_malloc(void *p): ptr_(static_cast<C*>(p)) { }
317 ~scoped_ptr_malloc() {
364 // These return whether a scoped_ptr_malloc and a plain pointer refer
377 void swap(scoped_ptr_malloc & b) {
397 // no reason to use these: each scoped_ptr_malloc should have its own object
399 bool operator==(scoped_ptr_malloc<C2, GP> const& p) const;
401 bool operator!=(scoped_ptr_malloc<C2, GP> const& p) const;
406 scoped_ptr_malloc(const scoped_ptr_malloc&);
407 void operator=(const scoped_ptr_malloc&);
411 FP const scoped_ptr_malloc<C, FP>::free_ = FP();
414 void swap(scoped_ptr_malloc<C, FP>& a, scoped_ptr_malloc<C, FP>& b) {
419 bool operator==(C* p, const scoped_ptr_malloc<C, FP>& b) {
424 bool operator!=(C* p, const scoped_ptr_malloc<C, FP>& b) {