]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/boost/fusion/container/list/detail/cpp03/list.hpp
Update to boost 1.72
[lyx.git] / 3rdparty / boost / boost / fusion / container / list / detail / cpp03 / list.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_LIST_07172005_1153)
8 #define FUSION_LIST_07172005_1153
9
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/support/void.hpp>
12 #include <boost/fusion/support/detail/enabler.hpp>
13 #include <boost/fusion/container/list/detail/cpp03/list_fwd.hpp>
14 #include <boost/fusion/container/list/detail/cpp03/list_to_cons.hpp>
15 #include <boost/fusion/support/is_sequence.hpp>
16 #include <boost/core/enable_if.hpp>
17
18 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
19 #include <boost/fusion/container/list/detail/cpp03/preprocessed/list.hpp>
20 #else
21 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
22 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/list" FUSION_MAX_LIST_SIZE_STR ".hpp")
23 #endif
24
25 /*=============================================================================
26     Copyright (c) 2001-2011 Joel de Guzman
27
28     Distributed under the Boost Software License, Version 1.0. (See accompanying
29     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
30
31     This is an auto-generated file. Do not edit!
32 ==============================================================================*/
33
34 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
35 #pragma wave option(preserve: 1)
36 #endif
37
38 namespace boost { namespace fusion
39 {
40     struct nil_;
41     struct void_;
42
43     template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename T)>
44     struct list
45         : detail::list_to_cons<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, T)>::type
46     {
47     private:
48         typedef
49             detail::list_to_cons<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, T)>
50         list_to_cons;
51         typedef typename list_to_cons::type inherited_type;
52
53     public:
54         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
55         list()
56             : inherited_type() {}
57
58         template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename U)>
59         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
60         list(list<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, U)> const& rhs)
61             : inherited_type(rhs) {}
62
63         template <typename Sequence>
64         BOOST_FUSION_GPU_ENABLED
65         list(Sequence const& rhs
66             , typename enable_if<traits::is_sequence<Sequence>, detail::enabler_>::type = detail::enabler)
67             : inherited_type(rhs) {}
68
69         //  Expand a couple of forwarding constructors for arguments
70         //  of type (T0), (T0, T1), (T0, T1, T2) etc. Exanple:
71         //
72         //  list(
73         //      typename detail::call_param<T0>::type arg0
74         //    , typename detail::call_param<T1>::type arg1)
75         //    : inherited_type(list_to_cons::call(arg0, arg1)) {}
76         #include <boost/fusion/container/list/detail/cpp03/list_forward_ctor.hpp>
77
78         template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename U)>
79         BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
80         list&
81         operator=(list<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, U)> const& rhs)
82         {
83             inherited_type::operator=(rhs);
84             return *this;
85         }
86
87         template <typename Sequence>
88         BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
89         typename boost::enable_if<traits::is_sequence<Sequence>, list&>::type
90         operator=(Sequence const& rhs)
91         {
92             inherited_type::operator=(rhs);
93             return *this;
94         }
95     };
96 }}
97
98 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
99 #pragma wave option(output: null)
100 #endif
101
102 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
103
104 #endif