Inheritance diagram for statarray:

This class is similar to stdext::valarray but has a fixed size through a template non-type parameter. This makes the class useful for auto variables, since it will not touch the heap and thus improve locality of reference and construction speed.
| T | The value type, which shall satisfy the following requirements:
| |
| n | The number of elements. |
Public Member Functions | |
Assignments | |
| statarray & | operator= (const T &x) |
| Assigns x to each element. | |
| template<typename Expr> | |
| statarray & | operator= (const impl::term< T, Expr > &other) |
| Assigns the other term. | |
| statarray & | operator= (const statarray &other) |
| Assigns the other array. | |
Constructors and Destructors | |
| template<typename Term> | |
| statarray (const impl::term< T, Term > &other) | |
| Constructs a copy of other term. | |
| statarray (const statarray &other) | |
| Constructs a copy of other array. | |
| statarray (const T *x) | |
| Constructs an array with copies of the first b elements from x. | |
| statarray (const T &x) | |
| Constructs an array, each element a copy of x. | |
| statarray () | |
| Constructs an array, each element zero. | |
| ~statarray () | |
| Destructs the array. | |