Class Index | Cross Index | Namespace Index |
Auto_ptr for arrays.
Contained in: General
Derived from:
none
Derived by:
none
#include "general/autoarray.hh"
public function member index: |
|||
explicit | AutoArray | (T* ptr_to_delete = 0); | |
AutoArray | (AutoArray<T>& Data); | Copy Constructor | |
AutoArray | (AutoArrayRef< T > Ref); | ||
~AutoArray | (); | ||
operator | AutoArray | (); | |
operator | AutoArrayRef | (); | |
T* | get | () const; | |
T* | operator -> | () const; | |
AutoArray& | operator = | (AutoArray& A); | |
AutoArray& | operator = | (AutoArrayRef< T > Ref); | |
T& | operator [] | (const size_t index) const; | |
T* | release | (); | |
void | reset | (T* p = 0); | |
Constructor
Construct a new AutoArray. This object takes ownership from the previous object
The following methods give reference like symantics to AutoArray
Destructor
auto_ptr compatability