Luna::Array

Represents one array of fixed or dynamic size.

template <typename _Ty, usize _Size>
class Luna::Array

Array is one container that contains fixed number of elements. The size of one array can be set in compile time by specifying _Size of the array, or can be set when creating the array by setting _Size to DYNAMIC_ARRAY_SIZE. Unlike Vector, the size of one array cannot be changed after the array is created. If the size of the array is determined in compile time, the memory for elements will be allocated directly in the array object; if the size of the array is determined in run time, the memory for elements will be allocated dynamically on heap.

Member functions