aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/contains.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list/operation/contains.h')
-rw-r--r--src/list/operation/contains.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/list/operation/contains.h b/src/list/operation/contains.h
new file mode 100644
index 0000000..9e752ed
--- /dev/null
+++ b/src/list/operation/contains.h
@@ -0,0 +1,26 @@
+#ifndef TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_
+#define TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_
+
+#include "higher/query.h"
+
+namespace tav {
+
+template <
+ typename Element,
+ typename List
+>
+class Contains {
+ private:
+ template <typename Current>
+ struct comparator {
+ typedef std::is_same<Current, Element> type;
+ };
+
+ public:
+ typedef typename Any<comparator, List>::type type;
+
+};
+
+}
+
+#endif // TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_