Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:34:43

0001 /*=============================================================================
0002     Copyright (c) 2014-2015 Kohei Takahashi
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 #ifndef FUSION_IS_SAME_SIZE_10082015_1156
0008 #define FUSION_IS_SAME_SIZE_10082015_1156
0009 
0010 #include <boost/fusion/support/is_sequence.hpp>
0011 #include <boost/fusion/sequence/intrinsic/size.hpp>
0012 #include <boost/mpl/bool.hpp>
0013 
0014 namespace boost { namespace fusion { namespace detail
0015 {
0016     template <typename Sequence1, typename Sequence2, bool
0017             = traits::is_sequence<Sequence1>::value &&
0018               traits::is_sequence<Sequence2>::value>
0019     struct is_same_size : mpl::false_ {};
0020 
0021     template <typename Sequence1, typename Sequence2>
0022     struct is_same_size<Sequence1, Sequence2, true>
0023         : mpl::bool_<result_of::size<Sequence1>::value == 
0024                      result_of::size<Sequence2>::value>
0025     {};
0026 }}}
0027 
0028 #endif