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.
core.internal.array.capacity
This module contains support for controlling dynamic arrays' capacity and length
License:
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE)
- template
_d_arraysetlengthTImpl
(Tarr : T[], T) - Implementation of _d_arraysetlengthT and _d_arraysetlengthTTrace
- pure nothrow @trusted size_t
_d_arraysetlengthT
(return ref scope Tarrarr
, size_tnewlength
); - Resize dynamic arrayParameters:
Tarr arr
the array that will be resized, taken as a reference size_t newlength
new length of array Returns:The new length of the arrayBugs:The safety level of this function is faked. It shows itself as @trusted pure nothrow to not break existing code. - alias
_d_arraysetlengthTTrace
= _d_HookTraceImpl!(Tarr, _d_arraysetlengthT, errorMessage); - TraceGC wrapper around core.internal.array.core.internal.array.capacity.d_arraysetlengthT.Bugs: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 nothrow until the implementation can be brought up to modern D expectations.
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on (no date time)