Home | History | Annotate | Download | only in internal

Lines Matching defs:scoped_array

33 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr.
48 template <class C> class scoped_array;
184 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
187 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
188 // or is NULL. A scoped_array<C> owns the object that it points to.
189 // scoped_array<T> is thread-compatible, and once you index into it,
192 // Size: sizeof(scoped_array<C>) == sizeof(C*)
194 class scoped_array {
200 // There is no way to create an uninitialized scoped_array.
202 explicit scoped_array(C* p = NULL) : array_(p) { }
206 ~scoped_array() {
237 // These return whether a scoped_array and a raw pointer refer to
243 void swap(scoped_array& p2) {
263 // Forbid comparison of different scoped_array types.
264 template <class C2> bool operator==(scoped_array<C2> const& p2) const;
265 template <class C2> bool operator!=(scoped_array<C2> const& p2) const;
268 scoped_array(const scoped_array&);
269 void operator=(const scoped_array&);
274 inline void swap(scoped_array<C>& p1, scoped_array<C>& p2) {
279 inline bool operator==(const C* p1, const scoped_array<C>& p2) {
284 inline bool operator==(const C* p1, const scoped_array<const C>& p2) {
289 inline bool operator!=(const C* p1, const scoped_array<C>& p2) {
294 inline bool operator!=(const C* p1, const scoped_array<const C>& p2) {