.TH "sc::auto_vec< T >" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::auto_vec< T > \- The \fBauto_vec\fP class functions much like auto_ptr, except it contains references to arrays\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Types" .in +1c .ti -1c .RI "typedef T \fBelement_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBauto_vec\fP (T *d=0) throw ()" .br .RI "Creates a new \fBauto_vec\fP for a vector, d, of type T\&. " .ti -1c .RI "\fBauto_vec\fP (\fBauto_vec\fP &av) throw ()" .br .RI "Create a \fBauto_vec\fP, transferring the storage from another\&. " .ti -1c .RI "\fB~auto_vec\fP () throw ()" .br .RI "This will delete the vector\&. " .ti -1c .RI "\fBauto_vec\fP & \fBoperator=\fP (\fBauto_vec\fP &av) throw ()" .br .RI "This member transfers the data from av to this\&. " .ti -1c .RI "T * \fBget\fP () const throw ()" .br .RI "Returns the pointer\&. " .ti -1c .RI "T & \fBoperator[]\fP (size_t i) throw ()" .br .RI "Returns the i'th element\&. " .ti -1c .RI "T * \fBrelease\fP () throw ()" .br .RI "Release ownership\&. " .ti -1c .RI "void \fBreset\fP (T *d=0) throw ()" .br .RI "Assign to a new value\&. " .in -1c .SH "Detailed Description" .PP .SS "template .br class sc::auto_vec< T >" The \fBauto_vec\fP class functions much like auto_ptr, except it contains references to arrays\&. The delete[] operator will be used to deallocate data\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBsc::auto_vec\fP< T >::\fBauto_vec\fP (T * d = \fC0\fP)\fC [inline]\fP, \fC [explicit]\fP" .PP Creates a new \fBauto_vec\fP for a vector, d, of type T\&. The d argument must be created with the vector new operator: new T[\&.\&.\&.]\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.