Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/container/list/list.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 ==============================================================================*/ | 6 ==============================================================================*/ |
7 #if !defined(FUSION_LIST_07172005_1153) | 7 #if !defined(FUSION_LIST_07172005_1153) |
8 #define FUSION_LIST_07172005_1153 | 8 #define FUSION_LIST_07172005_1153 |
9 | 9 |
10 #include <boost/fusion/support/config.hpp> | |
10 #include <boost/fusion/container/list/list_fwd.hpp> | 11 #include <boost/fusion/container/list/list_fwd.hpp> |
11 #include <boost/fusion/container/list/detail/list_to_cons.hpp> | 12 #include <boost/fusion/container/list/detail/list_to_cons.hpp> |
13 #include <boost/fusion/support/is_sequence.hpp> | |
14 #include <boost/core/enable_if.hpp> | |
12 | 15 |
13 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) | 16 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) |
14 #include <boost/fusion/container/list/detail/preprocessed/list.hpp> | 17 #include <boost/fusion/container/list/detail/preprocessed/list.hpp> |
15 #else | 18 #else |
16 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) | 19 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) |
45 list_to_cons; | 48 list_to_cons; |
46 | 49 |
47 public: | 50 public: |
48 typedef typename list_to_cons::type inherited_type; | 51 typedef typename list_to_cons::type inherited_type; |
49 | 52 |
53 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
50 list() | 54 list() |
51 : inherited_type() {} | 55 : inherited_type() {} |
52 | 56 |
53 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename U)> | 57 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename U)> |
58 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
54 list(list<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, U)> const& rhs) | 59 list(list<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, U)> const& rhs) |
55 : inherited_type(rhs) {} | 60 : inherited_type(rhs) {} |
56 | 61 |
57 template <typename Sequence> | 62 template <typename Sequence> |
58 list(Sequence const& rhs) | 63 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED |
64 list(Sequence const& rhs | |
65 , typename boost::enable_if<traits::is_sequence<Sequence> >::type* = 0) | |
59 : inherited_type(rhs) {} | 66 : inherited_type(rhs) {} |
60 | 67 |
61 // Expand a couple of forwarding constructors for arguments | 68 // Expand a couple of forwarding constructors for arguments |
62 // of type (T0), (T0, T1), (T0, T1, T2) etc. Exanple: | 69 // of type (T0), (T0, T1), (T0, T1, T2) etc. Exanple: |
63 // | 70 // |
64 // list( | 71 // list( |
65 // typename detail::call_param<T0>::type _0 | 72 // typename detail::call_param<T0>::type arg0 |
66 // , typename detail::call_param<T1>::type _1) | 73 // , typename detail::call_param<T1>::type arg1) |
67 // : inherited_type(list_to_cons::call(_0, _1)) {} | 74 // : inherited_type(list_to_cons::call(arg0, arg1)) {} |
68 #include <boost/fusion/container/list/detail/list_forward_ctor.hpp> | 75 #include <boost/fusion/container/list/detail/list_forward_ctor.hpp> |
69 | 76 |
70 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename U)> | 77 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename U)> |
78 BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
71 list& | 79 list& |
72 operator=(list<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, U)> const& rhs) | 80 operator=(list<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, U)> const& rhs) |
73 { | 81 { |
74 inherited_type::operator=(rhs); | 82 inherited_type::operator=(rhs); |
75 return *this; | 83 return *this; |
76 } | 84 } |
77 | 85 |
78 template <typename T> | 86 template <typename Sequence> |
79 list& | 87 BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED |
80 operator=(T const& rhs) | 88 typename boost::enable_if<traits::is_sequence<Sequence>, list&>::type |
89 operator=(Sequence const& rhs) | |
81 { | 90 { |
82 inherited_type::operator=(rhs); | 91 inherited_type::operator=(rhs); |
83 return *this; | 92 return *this; |
84 } | 93 } |
85 }; | 94 }; |