mininitRcarray

mininitRcarray
(
T
)
(
size_t length
,
bool deallocate = true
)

Parameters

length size_t

array length

deallocate bool

Flag, never deallocates memory if false.

Return Value

Type: RCArray!T

minimally initialized rcarray.

Examples

auto a = mininitRcarray!double(5);
assert(a.length == 5);
assert(a._counter == 1);
a[][] = 0; // a.opIndex()[] = 0;

Meta