UnqualArray

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

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

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 ConstStringArrays = const(string[])[int];
alias UnqualStringArrays = UnqualArray!ConstStringArrays;
static assert (is(UnqualStringArrays == string[][int]));

alias ImmIntArrays = immutable(int[])[char];
alias UnqualIntArrays = UnqualArray!ImmIntArrays;
static assert(is(UnqualIntArrays == int[][char]));

alias InoutBoolArrays = inout(bool)[][long];
alias UnqualBoolArrays = UnqualArray!InoutBoolArrays;
static assert(is(UnqualBoolArrays == bool[][long]));

alias ConstCharArrays = const(char)[][string];
alias UnqualCharArrays = UnqualArray!ConstCharArrays;
static assert(is(UnqualCharArrays == char[][string]));