ReplaceAll

Replaces all occurrences of T in L with U.

Members

Aliases

ReplaceAll
alias ReplaceAll = ReplaceAllImpl!(T, U, L)
Undocumented in source.

Parameters

T

The symbol to be replaced.

U

Replacement.

L

List of symbols.

Return Value

L with all occurrences of T replaced.

Examples

static assert(is(ReplaceAll!(int, uint, int) == AliasSeq!(uint)));
static assert(is(ReplaceAll!(int, uint, short, int, int, ushort)
           == AliasSeq!(short, uint, uint, ushort)));

static assert(ReplaceAll!(5, 8, 1, 2, 5, 5) == AliasSeq!(1, 2, 8, 8));

Meta