CopyTypeQualifiers

Copies type qualifiers from FromType to ToType.

Supported type qualifiers:

  • const
  • inout
  • immutable
  • shared
template CopyTypeQualifiers (
FromType
ToType
) {}

Examples

static assert(is(CopyTypeQualifiers!(inout const real, int) == inout const int));

Meta