Home | History | Annotate | Download | only in stubs

Lines Matching defs:scoped_ptr

427 // from google3/base/scoped_ptr.h
432 // implementation of the scoped_ptr class, and its closely-related brethren,
435 template <class C> class scoped_ptr;
438 // A scoped_ptr<T> is like a T*, except that the destructor of scoped_ptr<T>
440 // That is, scoped_ptr<T> owns the T object that it points to.
441 // Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to a T object.
443 // The size of a scoped_ptr is small:
444 // sizeof(scoped_ptr<C>) == sizeof(C*)
446 class scoped_ptr {
453 // There is no way to create an uninitialized scoped_ptr.
455 explicit scoped_ptr(C* p = NULL) : ptr_(p) { }
459 ~scoped_ptr() {
488 // These return whether two scoped_ptr refer to the same object, not just to
494 void swap(scoped_ptr& p2) {
514 // Forbid comparison of scoped_ptr types. If C2 != C, it totally doesn't
517 template <class C2> bool operator==(scoped_ptr<C2> const& p2) const;
518 template <class C2> bool operator!=(scoped_ptr<C2> const& p2) const;
521 scoped_ptr(const scoped_ptr&);
522 void operator=(const scoped_ptr&);
525 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
528 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
616 using internal::scoped_ptr;