anySatisfy

Tests whether any of the items of L satisfy the condition F.

F is a template that accepts one parameter and returns a boolean, so F!([0]) && F!([1]) and so on, can be called.

enum bool anySatisfy(alias F, L...);

Return Value

$(D_KEYWORD true) if any of the items of L satisfy F, $(D_KEYWORD false) otherwise.

Examples

static assert(anySatisfy!(isSigned, int, short, byte, long));
static assert(anySatisfy!(isUnsigned, uint, ushort, float, ulong));
static assert(!anySatisfy!(isSigned, uint, ushort, ulong));

Meta