]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/support/detail/is_mpl_sequence.hpp
eeb8f91617e54109763753da6c01b8484cb1fff4
[rsem.git] / boost / fusion / support / detail / is_mpl_sequence.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2006 Joel de Guzman
3     Copyright (c) 2005-2006 Dan Marsden
4
5     Distributed under the Boost Software License, Version 1.0. (See accompanying 
6     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #if !defined(FUSION_DETAIL_IS_MPL_SEQUENCE_29122006_1105)
9 #define FUSION_DETAIL_IS_MPL_SEQUENCE_29122006_1105
10
11 #include <boost/fusion/support/sequence_base.hpp>
12 #include <boost/type_traits/is_base_of.hpp>
13 #include <boost/mpl/is_sequence.hpp>
14 #include <boost/mpl/and.hpp>
15 #include <boost/mpl/not.hpp>
16
17 namespace boost { namespace fusion { namespace detail
18 {
19     template <typename T>
20     struct is_mpl_sequence
21         : mpl::and_<
22             mpl::not_<is_base_of<sequence_root, T> >
23           , mpl::is_sequence<T> >
24     {};
25 }}}
26
27 #endif