Lines Matching defs:scoped_array
132 // scoped_array extends scoped_ptr to arrays. Deletion of the array pointed to
133 // is guaranteed, either on destruction of the scoped_array or via an explicit
137 class scoped_array {
142 scoped_array(scoped_array const &);
143 scoped_array & operator=(scoped_array const &);
149 explicit scoped_array(T* p = 0) : ptr(p) {}
151 ~scoped_array() {
183 void swap(scoped_array & b) {
197 // no reason to use these: each scoped_array should have its own object
198 template <typename U> bool operator==(scoped_array<U> const& p) const;
199 template <typename U> bool operator!=(scoped_array<U> const& p) const;
203 void swap(::scoped_array<T>& a, ::scoped_array<T>& b) {
208 bool operator==(T* p, const ::scoped_array<T>& b) {
213 bool operator!=(T* p, const ::scoped_array<T>& b) {