annotate DEPENDENCIES/generic/include/boost/fusion/container/list/list.hpp @ 120:4729c8589274 emscripten-piper

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