File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ alias AliasSeq(AliasList...) = AliasList;
2727*/
2828template allSatisfy (alias F, T... ) {
2929 static foreach (U; T) {
30- static if (! is (typeof (allSatisfy) == bool ) && isValidTemplate ! (F, U ) && ! F! (U))
30+ static if (! is (typeof (allSatisfy) == bool ) && is ( typeof (F ! U) ) && ! F! (U))
3131 enum allSatisfy = false ;
3232 }
3333
@@ -41,19 +41,14 @@ template allSatisfy(alias F, T...) {
4141*/
4242template anySatisfy (alias F, T... ) {
4343 static foreach (U; T) {
44- static if (! is (typeof (anySatisfy) == bool ) && isValidTemplate ! (F, U ) && F! U)
44+ static if (! is (typeof (anySatisfy) == bool ) && is ( typeof (F ! U) ) && F! U)
4545 enum anySatisfy = true ;
4646 }
4747
4848 static if (! is (typeof (anySatisfy) == bool ))
4949 enum anySatisfy = false ;
5050}
5151
52- /**
53- Gets whether template invocation $(D F) is valid.
54- */
55- enum isValidTemplate (alias F, Args... ) = is (typeof (F! Args)) || is (F! Args);
56-
5752/**
5853 Returns a sequence of F!(T[0]), F!(T[1]), ..., F!(T[$-1])
5954*/
You can’t perform that action at this time.
0 commit comments