]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/fusion/view/nview/detail/size_impl.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / fusion / view / nview / 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_NVIEW_SIZE_IMPL_OCT_06_2009_0525PM)
8 #define FUSION_NVIEW_SIZE_IMPL_OCT_06_2009_0525PM
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 nview_tag;
18
19 namespace extension
20 {
21 template <typename Tag>
22 struct size_impl;
23
24 template <>
25 struct size_impl<nview_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