Alias

Creates an alias for T.

In contrast to the $(D_KEYWORD alias)-keyword $(D_PSYMBOL Alias) can alias any kind of D symbol that can be used as argument to template alias parameters.

  • Types
  • Local and global names
  • Module names
  • Template names
  • Template instance names
  • Literals
  1. alias Alias(alias T) = T
  2. alias Alias(T) = T
    alias Alias(T) = T

Parameters

T

A symbol.

Return Value

An alias for T.

Examples

static assert(is(Alias!int));

static assert(is(typeof(Alias!5)));
static assert(is(typeof(Alias!(() {}))));

int i;
static assert(is(typeof(Alias!i)));

See Also

Meta