DeepUnqual

DeepUnqual!T is a data type that is equivalent to T in terms of size, alignment, and GC properties, except that it can be freely reassigned.

All methods of T, including constructors, destructors and overloads, are lost. In fact, the result type has barely anything to do with T, except the following properties:

  • mutable
  • pointers where T has pointers
  • non-pointer values where T has no pointers (best-effort).

In other words, T is equivalent to DeepUnqual!T for the purpose of memory management, and nothing else.

template DeepUnqual (
T
) {}

Members

Aliases

DeepUnqual
alias DeepUnqual = DeepUnqualImpl!T
Undocumented in source.

Meta