t { import std.traits: isIntegral, isFloatingPoint; alias isIntegralOrFloating = orTemplates!(isIntegral, isFloatingPoint); static assert( allTuple!(isIntegralOrFloating, int, short, long, float, double)); static assert(!anyTuple!(isIntegralOrFloating, bool, char)); alias isIntegralOrFloatingOrChar = orTemplates!(isIntegralOrFloating, unaryPred!`is(T == char)`); static assert( allTuple!(isIntegralOrFloatingOrChar, int, short, long, float, double, char)); static assert(!isIntegralOrFloatingOrChar!bool
Create predicate template returning true iff any template of templates return non-zero (i.e. returning false if there are no templates).