From a9ec2e4e13670c8084c6baae59d6f3631960e22c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 31 Jan 2015 12:04:34 +0100 Subject: Implemented higher order `Find` list search operation * added appropriate test case * other queries in `query.h` may be redefined in terms of `Find` --- src/list/operation/higher/query.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/list/operation/higher/query.h') diff --git a/src/list/operation/higher/query.h b/src/list/operation/higher/query.h index 198ffa5..d2b8e76 100644 --- a/src/list/operation/higher/query.h +++ b/src/list/operation/higher/query.h @@ -9,41 +9,41 @@ namespace tav { template < - template class Function, + template class Predicate, typename List > using Any = Fold< Or, Boolean, - typename Map::type + typename Map::type >; template < - template class Function, + template class Predicate, typename List > using All = Fold< And, Boolean, - typename Map::type + typename Map::type >; template < - template class Function, + template class Predicate, typename List > using None = Not< - typename Any::type + typename Any::type >; template < - template class Function, + template class Predicate, typename List > using Count = Fold< Add, tav::Size<0>, - typename Map::type + typename Map::type >; } -- cgit v1.2.3