49 T *
get()
const throw() {
return _p; }
92 T *operator->() const throw();
97 template <class Y> operator
auto_array<Y>() throw();
100 #endif // #ifndef AUTO_ARRAY_H
Limited version of std::auto_ptr for dynamic arrays.
Definition: auto_array.h:27
~auto_array()
Deallocates the block of memory the object "points to" using delete[] and destructs the object...
Definition: auto_array.h:41
T * release()
Returns the stored pointer and sets the internal pointer to 0.
Definition: auto_array.h:61
auto_array(T *p=0)
Constructs an auto_array object from an array pointer.
Definition: auto_array.h:35
T * _p
Stored pointer.
Definition: auto_array.h:83
void reset(T *p=0)
Deallocates the array that the auto_array points to and sets a new value.
Definition: auto_array.h:76