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
auto_vec & operator=(auto_vec &av)
This member transfers the data from av to this.
Definition: autovec.h:75
auto_vec(auto_vec &av)
Create a auto_vec, transferring the storage from another.
Definition: autovec.h:69
void reset(T *d=0)
Assign to a new value.
Definition: autovec.h:94
T * release()
Release ownership.
Definition: autovec.h:87
~auto_vec()
This will delete the vector.
Definition: autovec.h:72
T * get() const
Returns the pointer.
Definition: autovec.h:81
auto_vec(T *d=0)
Creates a new auto_vec for a vector, d, of type T.
Definition: autovec.h:66
Generated at Sun Jan 26 2020 23:33:03 for MPQC
2.3.1 using the documentation package Doxygen
1.8.16.