Home | History | Annotate | Download | only in stubs

Lines Matching defs:scoped_array

46 //  scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
49 template <class C> class scoped_array;
138 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
141 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
142 // or is NULL. A scoped_array<C> owns the object that it points to.
144 // Size: sizeof(scoped_array<C>) == sizeof(C*)
146 class scoped_array {
153 // There is no way to create an uninitialized scoped_array.
155 explicit scoped_array(C* p = NULL) : array_(p) { }
159 ~scoped_array() {
190 // These return whether two scoped_array refer to the same object, not just to
196 void swap(scoped_array& p2) {
216 // Forbid comparison of different scoped_array types.
217 template <class C2> bool operator==(scoped_array<C2> const& p2) const;
218 template <class C2> bool operator!=(scoped_array<C2> const& p2) const;
221 scoped_array(const scoped_array&);
222 void operator=(const scoped_array&);
230 using internal::scoped_array;