47 #ifndef _util_misc_autovec_h 48 #define _util_misc_autovec_h 61 typedef T element_type;
81 T*
get()
const throw() {
return d_; }
105 #endif // _util_misc_autovec_h T & operator[](size_t i)
Returns the i'th element.
Definition: autovec.h:84
The auto_vec class functions much like auto_ptr, except it contains references to arrays...
Definition: autovec.h:58
void reset(T *d=0)
Assign to a new value.
Definition: autovec.h:94
T * release()
Release ownership.
Definition: autovec.h:87
auto_vec(auto_vec &av)
Create a auto_vec, transferring the storage from another.
Definition: autovec.h:69
auto_vec & operator=(auto_vec &av)
This member transfers the data from av to this.
Definition: autovec.h:75
~auto_vec()
This will delete the vector.
Definition: autovec.h:72
auto_vec(T *d=0)
Creates a new auto_vec for a vector, d, of type T.
Definition: autovec.h:66