Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2011 Joel de Guzman Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: #if !defined(FUSION_LIST_07172005_1153) Chris@16: #define FUSION_LIST_07172005_1153 Chris@16: Chris@101: #include Chris@16: #include Chris@16: #include Chris@101: #include Chris@101: #include Chris@16: Chris@16: #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) Chris@16: #include Chris@16: #else Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/list" FUSION_MAX_LIST_SIZE_STR ".hpp") Chris@16: #endif Chris@16: Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2011 Joel de Guzman Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: This is an auto-generated file. Do not edit! Chris@16: ==============================================================================*/ Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 1) Chris@16: #endif Chris@16: Chris@16: namespace boost { namespace fusion Chris@16: { Chris@16: struct nil_; Chris@16: struct void_; Chris@16: Chris@16: template Chris@16: struct list Chris@16: : detail::list_to_cons::type Chris@16: { Chris@16: private: Chris@16: typedef Chris@16: detail::list_to_cons Chris@16: list_to_cons; Chris@16: Chris@16: public: Chris@16: typedef typename list_to_cons::type inherited_type; Chris@16: Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: list() Chris@16: : inherited_type() {} Chris@16: Chris@16: template Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: list(list const& rhs) Chris@16: : inherited_type(rhs) {} Chris@16: Chris@16: template Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@101: list(Sequence const& rhs Chris@101: , typename boost::enable_if >::type* = 0) Chris@16: : inherited_type(rhs) {} Chris@16: Chris@16: // Expand a couple of forwarding constructors for arguments Chris@16: // of type (T0), (T0, T1), (T0, T1, T2) etc. Exanple: Chris@16: // Chris@16: // list( Chris@101: // typename detail::call_param::type arg0 Chris@101: // , typename detail::call_param::type arg1) Chris@101: // : inherited_type(list_to_cons::call(arg0, arg1)) {} Chris@16: #include Chris@16: Chris@16: template Chris@101: BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: list& Chris@16: operator=(list const& rhs) Chris@16: { Chris@16: inherited_type::operator=(rhs); Chris@16: return *this; Chris@16: } Chris@16: Chris@101: template Chris@101: BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@101: typename boost::enable_if, list&>::type Chris@101: operator=(Sequence const& rhs) Chris@16: { Chris@16: inherited_type::operator=(rhs); Chris@16: return *this; Chris@16: } Chris@16: }; Chris@16: }} Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(output: null) Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES Chris@16: Chris@16: #endif