logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sc::auto_vec< T > - The auto_vec class functions much like auto_ptr, except it contains references to

Author

       Generated automatically by Doxygen for MPQC from the source code.

Version 2.3.1                                    Sun Oct 4 2020                             sc::auto_vec<T>(3)

Constructor & Destructor Documentation

template<classT>sc::auto_vec<T>::auto_vec(T*d=0)[inline],[explicit]
       Creates a new auto_vec for a vector, d, of type T. The d argument must be created with the vector new
       operator: new T[...].

Detailed Description

template<classT>
       class sc::auto_vec< T >" The auto_vec class functions much like auto_ptr, except it contains references
       to arrays.

       The delete[] operator will be used to deallocate data.

Name

       sc::auto_vec< T > - The auto_vec class functions much like auto_ptr, except it contains references to
       arrays.

Synopsis

       #include <autovec.h>

   PublicTypes
       typedef T element_typePublicMemberFunctionsauto_vec (T *d=0)  throw ()
           Creates a new auto_vec for a vector, d, of type T.
       auto_vec (auto_vec &av)  throw ()
           Create a auto_vec, transferring the storage from another.
       ~auto_vec ()  throw ()
           This will delete the vector.
       auto_vec & operator= (auto_vec &av)  throw ()
           This member transfers the data from av to this.
       T * get () const  throw ()
           Returns the pointer.
       T & operator[] (size_t i)  throw ()
           Returns the i'th element.
       T * release ()  throw ()
           Release ownership.
       void reset (T *d=0)  throw ()
           Assign to a new value.

See Also