reinterpret_cast

Allows casting one type to another given that the types have the same size, reinterpreting the data.

This will NOT call opCast of aggregate types!

nothrow @nogc pragma(inline, true) ref @trusted
T
reinterpret_cast
(
T
U
)
(
auto ref U from
)
if (
T.sizeof == U.sizeof
)

Meta