_d_arraysetlengthTImpl._d_arraysetlengthT

Resize dynamic array

template _d_arraysetlengthTImpl(Tarr : T[], T)
version(LWDR_DynamicArray)
@trusted nothrow
_d_arraysetlengthT
(
return scope ref Tarr arr
,)

Parameters

arr Tarr

the array that will be resized, taken as a reference

newlength size_t

new length of array

Return Value

Type: size_t

The new length of the array

Bugs

The safety level of this function is faked. It shows itself as @trusted pure nothrow to not break existing code.

Meta