]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/view/filter_view/detail/size_impl.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / view / filter_view / detail / size_impl.hpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3
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
9
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>
14
15 namespace boost { namespace fusion
16 {
17 struct filter_view_tag;
18
19 namespace extension
20 {
21 template <typename Tag>
22 struct size_impl;
23
24 template <>
25 struct size_impl<filter_view_tag>
26 {
27 template <typename Sequence>
28 struct apply
29 : result_of::distance<
30 typename result_of::begin<Sequence>::type
31 , typename result_of::end<Sequence>::type>
32 {};
33 };
34 }
35 }}
36
37 #endif
38
39