]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/vector/detail/value_at_impl.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / vector / detail / value_at_impl.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2014 Kohei Takahashi
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#ifndef FUSION_VALUE_AT_IMPL_16122014_1641
8#define FUSION_VALUE_AT_IMPL_16122014_1641
9
10#include <boost/config.hpp>
11#include <boost/fusion/support/config.hpp>
12#include <boost/fusion/container/vector/detail/config.hpp>
13
14///////////////////////////////////////////////////////////////////////////////
15// Without variadics, we will use the PP version
16///////////////////////////////////////////////////////////////////////////////
17#if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR)
18# include <boost/fusion/container/vector/detail/cpp03/value_at_impl.hpp>
19#else
20
21///////////////////////////////////////////////////////////////////////////////
22// C++11 interface
23///////////////////////////////////////////////////////////////////////////////
24#include <boost/fusion/container/vector/vector_fwd.hpp>
25#include <boost/type_traits/declval.hpp>
26#include <boost/type_traits/remove_cv.hpp>
27
28namespace boost { namespace fusion
29{
30 struct vector_tag;
31
32 namespace vector_detail
33 {
34 template <typename I, typename ...T>
35 struct vector_data;
36 }
37
38 namespace extension
39 {
40 template <typename Tag>
41 struct value_at_impl;
42
43 template <>
44 struct value_at_impl<vector_tag>
45 {
46 template <typename Sequence, typename N>
47 struct apply
48 {
49 typedef typename boost::remove_cv<Sequence>::type seq;
50 typedef typename mpl::identity<decltype(seq::template value_at_impl<N::value>(boost::declval<seq*>()))>::type::type type;
51 };
52 };
53 }
54}}
55
56#endif
57#endif
58