]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/fusion/view/nview/detail/value_at_impl.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / fusion / view / nview / detail / value_at_impl.hpp
1 /*=============================================================================
2 Copyright (c) 2009 Hartmut Kaiser
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
8 #if !defined(BOOST_FUSION_NVIEW_VALUE_AT_IMPL_SEP_24_2009_0234PM)
9 #define BOOST_FUSION_NVIEW_VALUE_AT_IMPL_SEP_24_2009_0234PM
10
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/sequence/intrinsic/value_at.hpp>
13
14 namespace boost { namespace fusion
15 {
16 struct nview_tag;
17
18 namespace extension
19 {
20 template<typename Tag>
21 struct value_at_impl;
22
23 template<>
24 struct value_at_impl<nview_tag>
25 {
26 template<typename Sequence, typename N>
27 struct apply
28 {
29 typedef typename Sequence::sequence_type sequence_type;
30 typedef typename Sequence::index_type index_type;
31
32 typedef typename result_of::at<index_type, N>::type index;
33 typedef typename result_of::at<sequence_type, index>::type type;
34 };
35 };
36 }
37
38 }}
39
40 #endif