sprint 1-alpha
Public Member Functions
sprint::autovector< T > Class Template Reference

a memory ptr wrapper Provides an auto deallocation array with a destructive `resize` method and without boundaries check. More...

#include <autovector.h>

List of all members.

Public Member Functions

 autovector ()
 empty ctor
 autovector (int size)
 initialize a size elements vector
 ~autovector ()
 dtor
 autovector (autovector &src)
 ptr moving: origin is freed
void operator= (autovector &src)
 ptr moving: origin is freed
void resize (int size)
 resize the vector, destroying all data
T & operator[] (int i)
 return the i-th element (no boundaries check)
const T & operator[] (int i) const
T * begin ()
 return the begin of vector (size is unknown)
const T * begin () const
 return the begin of vector (size is unknown)

Detailed Description

template<class T>
class sprint::autovector< T >

a memory ptr wrapper Provides an auto deallocation array with a destructive `resize` method and without boundaries check.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines