UnqualArray

Given an associative array with elements that have a storage class, aliases itself to an associative array with elements without the storage classes.

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

Members

Imports

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

Parameters

QualArray

Qualified associative array type.

QualElem

Qualified type, element of QualArray.

QualKey

Qualified type, key of QualArray.

Examples

alias ConstStringAA = const(string)[int];
alias UnqualStringAA = UnqualArray!ConstStringAA;
static assert (is(UnqualStringAA == string[int]));

alias ImmIntAA = immutable(int)[char];
alias UnqualIntAA = UnqualArray!ImmIntAA;
static assert(is(UnqualIntAA == int[char]));

alias InoutBoolAA = inout(bool)[long];
alias UnqualBoolAA = UnqualArray!InoutBoolAA;
static assert(is(UnqualBoolAA == bool[long]));

alias ConstCharAA = const(char)[string];
alias UnqualCharAA = UnqualArray!ConstCharAA;
static assert(is(UnqualCharAA == char[string]));