The OpenD Programming Language

toRCArray

@trusted
toRCArray
(
F
)
()

Return Value

Type: RCArray!F

RC array length of one constructed from the slim shared pointer.

The function has zero computation cost.

Examples

struct S { double e; }

auto a = createSlimRC!S(4).toRCArray;
assert(a._counter == 1);
assert(a.length == 1);
assert(a[0].e == 4);

Meta