staticFilter2

Performs filtering of expression tuple T by pairs by function or template F. If F returns true the resulted pair goes to returned expression tuple, else it is discarded.

Members

Aliases

staticFilter2
alias staticFilter2 = ExpressionList!()
Undocumented in source.
staticFilter2
alias staticFilter2 = ExpressionList!(T[0], T[1], staticFilter2!(F, T[2..$]))
Undocumented in source.
staticFilter2
alias staticFilter2 = ExpressionList!(staticFilter2!(F, T[2..$]))
Undocumented in source.

Examples

Example

import std.conv;

bool testFunc(string val1, int val2)
{ 
    return val1.to!int == val2;
}

static assert(staticFilter2!(testFunc, ExpressionList!("42", 42, "2", 108, "15", 15, "1", 2)) == ExpressionList!("42", 42, "15", 15));

Meta