Home | History | Annotate | Download | only in common

Lines Matching defs:scoped_array

53 // Example usage (scoped_array):
55 // scoped_array<Foo> foo(new Foo[100]);
65 // scoped_array, scoped_ptr_malloc.
178 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate
181 // As with scoped_ptr<C>, a scoped_array<C> either points to an object
182 // or is NULL. A scoped_array<C> owns the object that it points to.
183 // scoped_array<T> is thread-compatible, and once you index into it,
186 // Size: sizeof(scoped_array<C>) == sizeof(C*)
188 class scoped_array {
195 // There is no way to create an uninitialized scoped_array.
197 explicit scoped_array(C* p = NULL) : array_(p) { }
201 ~scoped_array() {
232 // These return whether two scoped_array refer to the same object, not just to
238 void swap(scoped_array& p2) {
258 // Forbid comparison of different scoped_array types.
259 template <class C2> bool operator==(scoped_array<C2> const& p2) const;
260 template <class C2> bool operator!=(scoped_array<C2> const& p2) const;
263 scoped_array(const scoped_array&);
264 void operator=(const scoped_array&);
269 void swap(scoped_array<C>& p1, scoped_array<C>& p2) {
274 bool operator==(C* p1, const scoped_array<C>& p2) {
279 bool operator!=(C* p1, const scoped_array<C>& p2) {