The OpenD Programming Language

Appender.shrinkTo

Shrinks the managed array to the given length.

struct Appender(A)
@trusted pure
static if(isMutable!T)
void
shrinkTo
(
size_t newlength
)

Throws

Exception if newlength is greater than the current array length. Note: shrinkTo is disabled for immutable or const element types.

Meta