W3cubDocs

/D

core.internal.array.casting

This module contains compiler support for casting dynamic arrays

License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Source
core/internal/array/casting.d
pure @nogc @trusted TTo[] __ArrayCast(TFrom, TTo)(TFrom[] from);

The compiler lowers expressions of cast(TTo[])TFrom[] to this implementation.

Parameters:
TFrom[] from the array to reinterpret-cast
Returns:
from reinterpreted as TTo[]

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/core_internal_array_casting.html