Replace

Replaces the first occurrence of T in L with U.

Members

Aliases

Replace
alias Replace = ReplaceOne!(T, U, L)
Undocumented in source.

Parameters

T

The symbol to be replaced.

U

Replacement.

L

List of symbols.

Return Value

L with the first occurrence of T replaced.

Examples

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

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

Meta