Filter

Returns an alias sequence which contains only items that satisfy the condition pred.

Members

Aliases

Filter
alias Filter = AliasSeq!()
Undocumented in source.
Filter
alias Filter = AliasSeq!(L[0], Filter!(pred, L[1..$]))
Undocumented in source.
Filter
alias Filter = Filter!(pred, L[1..$])
Undocumented in source.

Parameters

pred

Template predicate.

L

Alias sequence.

Return Value

L filtered so that it contains only items that satisfy pred.

Examples

alias Given = AliasSeq!(real, int, bool, uint);
static assert(is(Filter!(isIntegral, Given) == AliasSeq!(int, uint)));

Meta