1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_IS_VIEW_03202006_0015)
8 #define FUSION_IS_VIEW_03202006_0015
10 #include <boost/mpl/bool.hpp>
11 #include <boost/fusion/support/detail/is_view.hpp>
12 #include <boost/fusion/support/tag_of.hpp>
14 namespace boost { namespace fusion
17 struct sequence_facade_tag;
18 struct boost_tuple_tag; // boost::tuples::tuple tag
19 struct boost_array_tag; // boost::array tag
20 struct mpl_sequence_tag; // mpl sequence tag
21 struct std_pair_tag; // std::pair tag
25 template<typename Tag>
30 : detail::fusion_is_view<T>
35 struct is_view_impl<sequence_facade_tag>
37 template <typename Sequence>
38 struct apply : Sequence::is_view {};
42 struct is_view_impl<boost_tuple_tag>;
45 struct is_view_impl<boost_array_tag>;
48 struct is_view_impl<mpl_sequence_tag>;
51 struct is_view_impl<std_pair_tag>;
59 (bool)extension::is_view_impl<typename fusion::detail::tag_of<T>::type>::
60 template apply<T>::type::value