30 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /*=============================================================================
 | |
|     Copyright (c) 2014-2015 Kohei Takahashi
 | |
| 
 | |
|     Distributed under the Boost Software License, Version 1.0. (See accompanying
 | |
|     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 | |
| ==============================================================================*/
 | |
| #ifndef FUSION_IS_SAME_SIZE_10082015_1156
 | |
| #define FUSION_IS_SAME_SIZE_10082015_1156
 | |
| 
 | |
| #include <boost/fusion/support/is_sequence.hpp>
 | |
| #include <boost/fusion/sequence/intrinsic/size.hpp>
 | |
| #include <boost/core/enable_if.hpp>
 | |
| #include <boost/mpl/bool.hpp>
 | |
| #include <boost/mpl/equal_to.hpp>
 | |
| 
 | |
| namespace boost { namespace fusion { namespace detail
 | |
| {
 | |
|     template <typename Sequence1, typename Sequence2, typename = void, typename = void>
 | |
|     struct is_same_size : mpl::false_ {};
 | |
| 
 | |
|     template <typename Sequence1, typename Sequence2>
 | |
|     struct is_same_size<Sequence1, Sequence2,
 | |
|                         typename enable_if<traits::is_sequence<Sequence1> >::type,
 | |
|                         typename enable_if<traits::is_sequence<Sequence2> >::type>
 | |
|         : mpl::equal_to<result_of::size<Sequence1>, result_of::size<Sequence2> >
 | |
|     {};
 | |
| }}}
 | |
| 
 | |
| #endif
 | 
