123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef BOOST_ICL_PREDICATES_SUB_SUPER_SET_HPP_JOFA_101102
- #define BOOST_ICL_PREDICATES_SUB_SUPER_SET_HPP_JOFA_101102
- #include <boost/icl/type_traits/predicate.hpp>
- #include <boost/icl/type_traits/type_to_string.hpp>
- namespace boost{namespace icl
- {
-
- template<class Type>
- struct sub_super_set : public relation<Type,Type>
- {
-
-
- bool operator()(const Type& sub, const Type& super)const
- {
- return contains(super, sub);
- }
- };
- template<>
- inline std::string unary_template_to_string<icl::sub_super_set>::apply()
- { return "C="; }
-
- template<class Type>
- struct super_sub_set : public relation<Type,Type>
- {
-
-
- bool operator()(const Type& super, const Type& sub)const
- {
- return contains(super, sub);
- }
- };
- template<>
- inline std::string unary_template_to_string<icl::super_sub_set>::apply()
- { return "D="; }
- }}
- #endif
|