diff options
Diffstat (limited to 'src/list/operation/contains.h')
-rw-r--r-- | src/list/operation/contains.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/list/operation/contains.h b/src/list/operation/contains.h index 9e752ed..d3f95fa 100644 --- a/src/list/operation/contains.h +++ b/src/list/operation/contains.h @@ -1,6 +1,7 @@ #ifndef TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_ #define TYPEASVALUE_SRC_LIST_OPERATION_CONTAINS_H_ +#include "type.h" #include "higher/query.h" namespace tav { @@ -12,9 +13,7 @@ template < class Contains { private: template <typename Current> - struct comparator { - typedef std::is_same<Current, Element> type; - }; + using comparator = EqualValue<Current, Element>; public: typedef typename Any<comparator, List>::type type; |