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_SIZE_IMPL_09232005_1058)
8 #define FUSION_SIZE_IMPL_09232005_1058
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/iterator/distance.hpp>
12 #include <boost/fusion/sequence/intrinsic/begin.hpp>
13 #include <boost/fusion/sequence/intrinsic/end.hpp>
15 namespace boost { namespace fusion
17 struct filter_view_tag;
21 template <typename Tag>
25 struct size_impl<filter_view_tag>
27 template <typename Sequence>
29 : result_of::distance<
30 typename result_of::begin<Sequence>::type
31 , typename result_of::end<Sequence>::type>