geomc 1.0
A c++ linear algebra template library
|
Array storage with templated static or dynamic size. More...
#include <geomc/Storage.h>
Public Attributes | |
T | data [N] |
Data array. Reference-counted if N is 0 (dynamic). | |
Array storage with templated static or dynamic size.
T | Element type. |
N | Size of the array, or 0 for dynamic size. |
The array will be dynamically allocated if the dimension template argument N
is zero; otherwise the storage will be local. Dynamically allocated storage uses reference counting for memory management.
This is the simplest type of storage, in which the client is responsible for keeping track of the size of dynamic arrays. (This may save space particularly if multiple/parallel Storage arrays are in use).
#include <geomc/Storage.h>