Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:43:56

0001 /*-----------------------------------------------------------------------------+
0002 Copyright (c) 2010-2010: Joachim Faulhaber
0003 +------------------------------------------------------------------------------+
0004    Distributed under the Boost Software License, Version 1.0.
0005       (See accompanying file LICENCE.txt or copy at
0006            http://www.boost.org/LICENSE_1_0.txt)
0007 +-----------------------------------------------------------------------------*/
0008 #ifndef BOOST_ICL_PREDICATES_ELEMENT_EQUAL_HPP_JOFA_101102
0009 #define BOOST_ICL_PREDICATES_ELEMENT_EQUAL_HPP_JOFA_101102
0010 
0011 #include <boost/icl/type_traits/predicate.hpp>
0012 #include <boost/icl/type_traits/type_to_string.hpp>
0013 
0014 namespace boost{namespace icl
0015 {
0016     template <class Type> 
0017     struct element_equal : public relation<Type,Type>
0018     {
0019         bool operator()(const Type& lhs, const Type& rhs)const
0020         {
0021             return is_element_equal(lhs, rhs);
0022         }
0023     };
0024 
0025     template<>
0026     inline std::string unary_template_to_string<icl::element_equal>::apply()  
0027     { return "="; }
0028 
0029 }} // namespace icl boost
0030 
0031 #endif
0032