License
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE) Source: core/internal/_array/_construction.d
This module contains compiler support for constructing dynamic arrays
(See accompanying file LICENSE) Source: core/internal/_array/_construction.d
Tarr _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 = ...void _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...T[] _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.Tarr _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.