Very simple implementation of a constant sized array with possibility for manual resize. More...
#include <FixedArray.hpp>
Public Member Functions | |
| FixedArray (const size_type size) | |
| Create a new FixedArray. More... | |
| FixedArray (const FixedArray< value_type > &other) | |
| Copy constructor. | |
| ~FixedArray () | |
| A destructor. | |
| reference | operator= (const_reference other) |
| Assignment operator. | |
| reference | operator[] (size_type i) |
| Array subscript operator. More... | |
| const_reference | operator[] (size_type i) const |
| Array subscript operator. More... | |
| size_type | size () const |
| Returns the size of a FixedArray object. | |
Very simple implementation of a constant sized array with possibility for manual resize.
The FixedArray class is a simple wrapper around an ordinary array that stores the size of the array.
| T | type stored in the FixedArray |
|
inline |
Create a new FixedArray.
The size of the FixedArray can't be changed later. If the size is <= 0, the created FixedArray is invalid and it cannot be used to hold content.
|
inline |
Array subscript operator.
Can be used only with arrays with non-zero size
|
inline |
Array subscript operator.
Can be used only with arrays with non-zero size
1.8.4