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_TUPLE_10032005_0810) Chris@16: #define FUSION_TUPLE_10032005_0810 Chris@16: Chris@101: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #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/tuple" FUSION_MAX_VECTOR_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: template Chris@16: struct tuple : vector Chris@16: { Chris@16: typedef vector< Chris@16: BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> Chris@16: base_type; Chris@16: Chris@101: BOOST_FUSION_GPU_ENABLED tuple() Chris@16: : base_type() {} Chris@16: Chris@101: BOOST_FUSION_GPU_ENABLED tuple(tuple const& rhs) Chris@16: : base_type(rhs) {} Chris@16: Chris@16: template Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: tuple(std::pair const& rhs) Chris@16: : base_type(rhs) {} Chris@16: Chris@16: #include Chris@16: Chris@16: template Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: tuple& operator=(T const& rhs) Chris@16: { Chris@16: base_type::operator=(rhs); Chris@16: return *this; Chris@16: } Chris@16: Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: tuple& operator=(tuple const& rhs) Chris@16: { Chris@16: base_type::operator=(rhs); Chris@16: return *this; Chris@16: } Chris@16: Chris@16: template Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: tuple& operator=(std::pair const& rhs) Chris@16: { Chris@16: base_type::operator=(rhs); Chris@16: return *this; Chris@16: } Chris@16: }; Chris@16: Chris@16: template Chris@16: struct tuple_size : result_of::size {}; Chris@16: Chris@16: template Chris@16: struct tuple_element : result_of::value_at_c {}; Chris@16: Chris@16: template Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: inline typename Chris@16: lazy_disable_if< Chris@16: is_const Chris@16: , result_of::at_c Chris@16: >::type Chris@16: get(Tuple& tup) Chris@16: { Chris@16: return at_c(tup); Chris@16: } Chris@16: Chris@16: template Chris@101: BOOST_FUSION_GPU_ENABLED Chris@16: inline typename result_of::at_c::type Chris@16: get(Tuple const& tup) Chris@16: { Chris@16: return at_c(tup); 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 Chris@101: