Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 09:45:20

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(FUSION_ENABLE_COMPARISON_09232005_1958)
0008 #define FUSION_ENABLE_COMPARISON_09232005_1958
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/mpl/or.hpp>
0012 #include <boost/mpl/and.hpp>
0013 #include <boost/mpl/not.hpp>
0014 #include <boost/mpl/equal_to.hpp>
0015 #include <boost/fusion/support/sequence_base.hpp>
0016 #include <boost/fusion/support/is_sequence.hpp>
0017 #include <boost/fusion/sequence/intrinsic/size.hpp>
0018 
0019 namespace boost { namespace fusion { namespace traits
0020 {
0021     template <typename Seq1, typename Seq2, typename Enable = void>
0022     struct enable_equality
0023         : mpl::and_<traits::is_sequence<Seq1>, traits::is_sequence<Seq2> >
0024     {};
0025 
0026     template <typename Seq1, typename Seq2, typename Enable = void>
0027     struct enable_comparison
0028         : mpl::and_<
0029             traits::is_sequence<Seq1>, traits::is_sequence<Seq2>
0030           , mpl::equal_to<result_of::size<Seq1>, result_of::size<Seq2> >
0031         >
0032     {};
0033 }}}
0034 
0035 #endif