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_STD_EQUAL_HPP_JOFA_101102
0009 #define BOOST_ICL_PREDICATES_STD_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> struct std_equal : public relation<Type,Type>
0017     {
0018         bool operator()(const Type& lhs, const Type& rhs)const
0019         {
0020             return lhs == rhs;
0021         }
0022     };
0023 
0024     //-----------------------------------------------------------------------------
0025 
0026     template<>         
0027     inline std::string unary_template_to_string<icl::std_equal>::apply()
0028     { return "=="; }
0029 
0030 }} // namespace icl boost
0031 
0032 #endif
0033