Searched defs:scoped_array (Results 1 - 8 of 8) sorted by relevance
/external/oprofile/libutil++/ |
H A D | utility.h | 57 template<typename T> class scoped_array { class 59 explicit scoped_array(T * p = 0) : p_(p) {} function in class:scoped_array 60 ~scoped_array() { delete [] p_; } 72 void swap(scoped_array & sp) { 79 scoped_array & operator=(scoped_array const &); 80 scoped_array(scoped_array const &);
|
/external/chromium/base/memory/ |
H A D | scoped_ptr.h | 29 // Example usage (scoped_array): 31 // scoped_array<Foo> foo(new Foo[100]); 42 // scoped_array, scoped_ptr_malloc. 155 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate 158 // As with scoped_ptr<C>, a scoped_array<C> either points to an object 159 // or is NULL. A scoped_array<C> owns the object that it points to. 160 // scoped_array<T> is thread-compatible, and once you index into it, 163 // Size: sizeof(scoped_array<C>) == sizeof(C*) 165 class scoped_array { class 172 // There is no way to create an uninitialized scoped_array 174 explicit scoped_array(C* p = NULL) : array_(p) { } function in class:scoped_array [all...] |
/external/chromium/googleurl/base/ |
H A D | scoped_ptr.h | 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 { class 142 scoped_array(scoped_array const &); 143 scoped_array & operator=(scoped_array const &); 149 explicit scoped_array(T* p = 0) : ptr(p) {} function in class:scoped_array 151 ~scoped_array() { 183 void swap(scoped_array [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | scoped_ptr.h | 117 // scoped_array extends scoped_ptr to arrays. Deletion of the array pointed to 118 // is guaranteed, either on destruction of the scoped_array or via an explicit 122 class scoped_array { class in namespace:talk_base 127 scoped_array(scoped_array const &); 128 scoped_array & operator=(scoped_array const &); 134 explicit scoped_array(T* p = NULL) : ptr(p) {} function in class:talk_base::scoped_array 136 ~scoped_array() { 147 // Delete last, in case arr destructor indirectly results in ~scoped_array [all...] |
/external/skia/src/images/ |
H A D | bmpdecoderhelper.h | 24 template <typename T> class scoped_array { class 27 scoped_array(scoped_array const&); 28 scoped_array& operator=(const scoped_array&); 31 explicit scoped_array(T* p = 0) : ptr_(p) {} function in class:scoped_array 32 ~scoped_array() { 100 scoped_array<uint8> colTab_;
|
/external/webrtc/src/system_wrappers/interface/ |
H A D | scoped_ptr.h | 117 // scoped_array extends scoped_ptr to arrays. Deletion of the array pointed to 118 // is guaranteed, either on destruction of the scoped_array or via an explicit 122 class scoped_array { class in namespace:webrtc 127 scoped_array(scoped_array const &); 128 scoped_array & operator=(scoped_array const &); 134 explicit scoped_array(T* p = NULL) : ptr(p) {} function in class:webrtc::scoped_array 136 ~scoped_array() { 147 // Delete last, in case arr destructor indirectly results in ~scoped_array [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
H A D | common.h | 402 // scoped_array, scoped_ptr_malloc, and make_scoped_ptr. 405 template <class C> class scoped_array; 494 // scoped_array<C> is like scoped_ptr<C>, except that the caller must allocate 497 // As with scoped_ptr<C>, a scoped_array<C> either points to an object 498 // or is NULL. A scoped_array<C> owns the object that it points to. 500 // Size: sizeof(scoped_array<C>) == sizeof(C*) 502 class scoped_array { class in namespace:google::protobuf::internal 509 // There is no way to create an uninitialized scoped_array. 511 explicit scoped_array(C* p = NULL) : array_(p) { } function in class:google::protobuf::internal::scoped_array 515 ~scoped_array() { [all...] |
/external/clang/test/SemaCXX/ |
H A D | new-delete.cpp | 464 template <class C> struct scoped_array { struct in namespace:PR12061 465 scoped_array(C* p = __null); 468 Foo() : a_(new scoped_array<int>[5]) { } 469 scoped_array< scoped_array<int> > a_;
|
Completed in 245 milliseconds