allSatisfy

Tests whether all 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 allSatisfy(alias F, L...);

Return Value

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

Examples

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

Meta