Unqual

Removes any type qualifiers from T.

Removed qualifiers are:

  • const
  • immutable
  • inout
  • shared

and combinations of these.

If the type T doesn't have any qualifieres, Unqual!T becomes an alias for T.

template Unqual (
T
) {}

Members

Aliases

Unqual
alias Unqual = U
Undocumented in source.
Unqual
alias Unqual = T
Undocumented in source.

Parameters

T

A type.

Return Value

T without any type qualifiers.

Examples

static assert(is(Unqual!bool == bool));
static assert(is(Unqual!(immutable bool) == bool));
static assert(is(Unqual!(inout bool) == bool));
static assert(is(Unqual!(inout const bool) == bool));
static assert(is(Unqual!(shared bool) == bool));
static assert(is(Unqual!(shared const bool) == bool));
static assert(is(Unqual!(shared inout const bool) == bool));

Meta