/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_TUPLE_10032005_0810) #define FUSION_TUPLE_10032005_0810 #include #include #include #include #include #include #include #include #include #include #include #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) #include #else #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/tuple" FUSION_MAX_VECTOR_SIZE_STR ".hpp") #endif /*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) This is an auto-generated file. Do not edit! ==============================================================================*/ #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 1) #endif namespace boost { namespace fusion { template struct tuple : vector { typedef vector< BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> base_type; BOOST_FUSION_GPU_ENABLED tuple() : base_type() {} BOOST_FUSION_GPU_ENABLED tuple(tuple const& rhs) : base_type(rhs) {} template BOOST_FUSION_GPU_ENABLED tuple(std::pair const& rhs) : base_type(rhs) {} #include template BOOST_FUSION_GPU_ENABLED tuple& operator=(T const& rhs) { base_type::operator=(rhs); return *this; } BOOST_FUSION_GPU_ENABLED tuple& operator=(tuple const& rhs) { base_type::operator=(rhs); return *this; } template BOOST_FUSION_GPU_ENABLED tuple& operator=(std::pair const& rhs) { base_type::operator=(rhs); return *this; } }; template struct tuple_size : result_of::size {}; template struct tuple_element : result_of::value_at_c {}; template BOOST_FUSION_GPU_ENABLED inline typename lazy_disable_if< is_const , result_of::at_c >::type get(Tuple& tup) { return at_c(tup); } template BOOST_FUSION_GPU_ENABLED inline typename result_of::at_c::type get(Tuple const& tup) { return at_c(tup); } }} #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(output: null) #endif #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES #endif