123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BOOST_ICL_CONCEPT_COMPARABLE_HPP_JOFA_100921
- #define BOOST_ICL_CONCEPT_COMPARABLE_HPP_JOFA_100921
- #include <boost/utility/enable_if.hpp>
- #include <boost/icl/type_traits/is_icl_container.hpp>
- namespace boost{ namespace icl
- {
- template<class Type>
- inline typename enable_if<is_icl_container<Type>, bool>::type
- operator != (const Type& left, const Type& right)
- { return !(left == right); }
- template<class Type>
- inline typename enable_if<is_icl_container<Type>, bool>::type
- operator > (const Type& left, const Type& right)
- { return right < left; }
- template<class Type>
- inline typename enable_if<is_icl_container<Type>, bool>::type
- operator <= (const Type& left, const Type& right)
- { return !(left > right); }
- template<class Type>
- inline typename enable_if<is_icl_container<Type>, bool>::type
- operator >= (const Type& left, const Type& right)
- { return !(left < right); }
- }}
- #endif
|