Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.


This module contains support for controlling dynamic arrays' appending
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
ref @trusted Tarr _d_arrayappendcTX(Tarr : T[], T)(return ref scope Tarr px, size_t n);
Extend an array px by n elements. Caller must initialize those elements.
Tarr px the array that will be extended, taken as a reference
size_t n how many new elements to extend it with
The new value of px
This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted pure until the implementation can be brought up to modern D expectations.
ref @trusted Tarr _d_arrayappendT(Tarr : T[], T)(return ref scope Tarr x, scope Tarr y);
Implementation of _d_arrayappendT