UnqualArray

Given an array of qualified elements, aliases itself to one such of unqualified elements.

  1. template UnqualArray(QualArray : QualType[], QualType)
    template UnqualArray (
    QualArray : QualType[]
    QualType
    ) if (
    !isAssociativeArray!QualType
    ) {}
  2. template UnqualArray(QualArray : QualElem[QualKey], QualElem, QualKey)
  3. template UnqualArray(QualArray : QualElem[QualKey], QualElem, QualKey)

Members

Aliases

UnqualArray
alias UnqualArray = Unqual!QualType[]
Undocumented in source.

Imports

Unqual (from std.traits)
public import std.traits : Unqual;
Undocumented in source.

Parameters

QualArray

Qualified array type.

QualType

Qualified type, element of QualArray.

Examples

alias ConstStrings = const(string)[];
alias UnqualStrings = UnqualArray!ConstStrings;
static assert(is(UnqualStrings == string[]));

alias ImmChars = string;
alias UnqualChars = UnqualArray!ImmChars;
static assert(is(UnqualChars == char[]));

alias InoutBools = inout(bool)[];
alias UnqualBools = UnqualArray!InoutBools;
static assert(is(UnqualBools == bool[]));

alias ConstChars = const(char)[];
alias UnqualChars2 = UnqualArray!ConstChars;
static assert(is(UnqualChars2 == char[]));

Meta