|
sprint 1-alpha
|
a memory ptr wrapper Provides an auto deallocation array with a destructive `resize` method and without boundaries check. More...
#include <autovector.h>
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) | |
a memory ptr wrapper Provides an auto deallocation array with a destructive `resize` method and without boundaries check.
1.7.4