value_tmpl | The element type to be stored in the array. |
Public Types | |
typedef value_tmpl | value_type |
The type that represents elements of the array. | |
typedef size_t | size_type |
The type that represents the size of the array. | |
Public Member Functions | |
array () | |
Constructs an array. | |
array (value_type *block, size_type size, bool own=false) | |
Constructs an array from an existing memory block. | |
array (const array &rho) | |
Constructs an array from another array instance. | |
virtual | ~array () |
Destructs an array. | |
array & | operator= (const array &rho) |
Assigns the new array to this instance. | |
value_type & | operator[] (size_type i) |
Obtains a read/write access to an element in the array. | |
const value_type & | operator[] (size_type i) const |
Obtains a read-only access to an element in the array. | |
operator bool () const | |
Checks whether an array is allocated. | |
size_type | size () const |
Reports the size of the array. | |
void | assign (value_type *block, size_type size, bool own=false) |
Assigns a new array from an existing memory block. | |
void | free () |
Destroy the array. |