From d33f7d10f4ee6bb41a73e1a2981de5d602f64952 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 20 Jan 2015 17:50:45 +0100 Subject: Added higher order list query `None` --- src/list/operation/higher/query.h | 9 +++++++++ src/operation/logic.h | 3 +++ 2 files changed, 12 insertions(+) (limited to 'src') diff --git a/src/list/operation/higher/query.h b/src/list/operation/higher/query.h index 56bb203..34d05cb 100644 --- a/src/list/operation/higher/query.h +++ b/src/list/operation/higher/query.h @@ -1,6 +1,7 @@ #ifndef TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_QUERY_H_ #define TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_QUERY_H_ +#include "fold.h" #include "operation/logic.h" namespace tav { @@ -25,6 +26,14 @@ using All = Fold< typename Map::type >; +template < + template class Function, + typename List +> +using None = Not< + typename Any::type +>; + } #endif // TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_QUERY_H_ diff --git a/src/operation/logic.h b/src/operation/logic.h index 23393b2..3e447d6 100644 --- a/src/operation/logic.h +++ b/src/operation/logic.h @@ -23,6 +23,9 @@ template < > using Xor = Boolean; +template +using Not = Boolean; + } #endif // TYPEASVALUE_SRC_OPERATION_LOGIC_H_ -- cgit v1.2.3