Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
sc::auto_vec< T	>(3)		     MPQC		  sc::auto_vec<	T >(3)

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

SYNOPSIS
       #include	<autovec.h>

   Public Types
       typedef T element_type

   Public Member Functions
       auto_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.

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.

Constructor & Destructor Documentation
   template<class T> 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[...].

   template<class T> sc::auto_vec< T >::auto_vec (auto_vec< T >	& av) [inline]
       Create a	auto_vec, transferring the storage from	another.

   template<class T> sc::auto_vec< T >::~auto_vec () [inline]
       This will delete	the vector.

Member Function	Documentation
   template<class T> T*	sc::auto_vec< T	>::get () const	[inline]
       Returns the pointer.

   template<class T> auto_vec& sc::auto_vec< T >::operator= (auto_vec< T > &
       av) [inline]
       This member transfers the data from av to this.

   template<class T> T&	sc::auto_vec< T	>::operator[] (size_t i) [inline]
       Returns the i'th	element.

   template<class T> T*	sc::auto_vec< T	>::release () [inline]
       Release ownership.

   template<class T> void sc::auto_vec<	T >::reset (T *	d = 0) [inline]
       Assign to a new value.

       Referenced by sc::auto_vec< double >::operator=().

Author
       Generated automatically by Doxygen for MPQC from	the source code.

Version	2.3.1			Sun Aug	30 2020		  sc::auto_vec<	T >(3)

NAME | SYNOPSIS | Detailed Description | Constructor & Destructor Documentation | Member Function Documentation | Author

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sc_auto_vec&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help