EraseAll

Removes all occurrences of T from the alias sequence $(D_PARAL L).

  1. template EraseAll(T, L...)
    template EraseAll (
    T
    L...
    ) {}
  2. template EraseAll(alias T, L...)

Members

Aliases

EraseAll
alias EraseAll = EraseAllImpl!(T, L)
Undocumented in source.

Parameters

T

The item to be removed.

L

Alias sequence.

Return Value

L with all occurrences of T removed.

Examples

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

Meta