SC_AUTO_VEC(3)
okay bestie, welcome to the sc::auto_vec< T >(3) page from the MPQC manual β it's giving "array-owning auto_ptr" energy, and we're gonna read every single line together. π
π NAME π
sc::auto_vec< T > β the auto_vec class functions much like auto_ptr, except it contains references to arrays. periodt. β¨
β¨ SYNOPSIS β¨
#include <autovec.h>
π Public Types π
typedef T element_typeβ the element type is literallyT, bestie. π«Ά
πΈ Public Member Functions πΈ
auto_vec (T *d=0) throw ()β creates a newauto_vecfor a vector,d, of typeT. πauto_vec (auto_vec &av) throw ()β creates anauto_vec, transferring the storage from another. π¦~auto_vec () throw ()β this will delete the vector. bye bestie πauto_vec & operator= (auto_vec &av) throw ()β this member transfers the data fromavto this. πT * get () const throw ()β returns the pointer. β¨T & operator[] (size_t i) throw ()β returns thei'th element. πΈT * release () throw ()β release ownership. no cap, it's right there. πvoid reset (T *d=0) throw ()β assign to a new value. π
π¦ Detailed Description π¦
template<class T>
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. Slay. π₯
π Constructor & Destructor Documentation π
template<class T > sc::auto_vec< T >::auto_vec (T * d = 0) [inline], [explicit]β creates a newauto_vecfor a vector,d, of typeT. Thedargument must be created with the vector new operator:new T[...]. π
π Author π
Generated automatically by Doxygen for MPQC from the source code. β iconic, honestly. π
signed, sealed, delivered: Version 2.3.1 on Sun Oct 4 2020 β sc::auto_vec< T >(3) π
β¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms