ReplaceAll

Returns an AliasSeq created from TList with all occurrences of T, if found, replaced with U.

  1. template ReplaceAll(T, U, TList...)
  2. template ReplaceAll(alias T, U, TList...)
  3. template ReplaceAll(T, alias U, TList...)
  4. template ReplaceAll(alias T, alias U, TList...)
    template ReplaceAll (
    TList...
    ) {}

Examples

alias Types = AliasSeq!(int, long, long, int, float);

alias TL = ReplaceAll!(long, char, Types);
static assert(is(TL == AliasSeq!(int, char, char, int, float)));
Suggestion Box / Bug Report