core.internal.array.construction

This module contains compiler support for constructing dynamic arrays

Functions 7

fnTarr _d_arrayctor(Tarr : T[], T)(return scope Tarr to, scope Tarr from, char * makeWeaklyPure = null) @trustedDoes array initialization (not assignment) from another array of the same element type. Params: to = what array to initialize from = what data the array should be initialized with makeWeaklyPure = ...
fnvoid _d_arraysetctor(Tarr : T[], T)(scope Tarr p, scope ref T value) @trustedDo construction of an array. ti[count] p = value; Params: p = what array to initialize value = what data to construct the array with Bugs: This function template was ported from a much older runtim...
fnT[] _d_newarrayUPureNothrow(T)(size_t length, bool isShared = false) pure nothrow @trustedAllocate an array with the garbage collector. Also initalize elements if their type has an initializer. Otherwise, not zero-initialize the array.
fnT[] _d_newarrayU(T)(size_t length, bool isShared = false) @trusted
fnT[] _d_newarrayT(T)(size_t length, bool isShared = false) @trustedditto
fnTarr _d_newarraymTX(Tarr : U[], T, U)(scope size_t[] dims, bool isShared = false) @trustedCreate a new multi-dimensional array. Also initalize elements if their type has an initializer. Otherwise, not zero-initialize the array.
fnvoid * _d_arrayliteralTX(T)(size_t length) @trusted pure nothrowAllocate an array literal