1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
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_TUPLE_10032005_0810)
8 #define FUSION_TUPLE_10032005_0810
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/tuple/detail/tuple_fwd.hpp>
12 #include <boost/fusion/container/vector/vector.hpp>
13 #include <boost/fusion/sequence/intrinsic/size.hpp>
14 #include <boost/fusion/sequence/intrinsic/value_at.hpp>
15 #include <boost/fusion/sequence/intrinsic/at.hpp>
16 #include <boost/fusion/sequence/comparison.hpp>
17 #include <boost/fusion/sequence/io.hpp>
18 #include <boost/utility/enable_if.hpp>
19 #include <boost/type_traits/is_const.hpp>
20 #include <boost/config/no_tr1/utility.hpp>
22 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
23 #include <boost/fusion/tuple/detail/preprocessed/tuple.hpp>
25 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
26 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/tuple" FUSION_MAX_VECTOR_SIZE_STR ".hpp")
29 /*=============================================================================
30 Copyright (c) 2001-2011 Joel de Guzman
32 Distributed under the Boost Software License, Version 1.0. (See accompanying
33 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
35 This is an auto-generated file. Do not edit!
36 ==============================================================================*/
38 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
39 #pragma wave option(preserve: 1)
42 namespace boost { namespace fusion
44 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
45 struct tuple : vector<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>
48 BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>
51 BOOST_FUSION_GPU_ENABLED tuple()
54 BOOST_FUSION_GPU_ENABLED tuple(tuple const& rhs)
55 : base_type(static_cast<base_type const&>(rhs)) {}
57 template <typename U1, typename U2>
58 BOOST_FUSION_GPU_ENABLED
59 tuple(std::pair<U1, U2> const& rhs)
62 #include <boost/fusion/tuple/detail/tuple_expand.hpp>
65 BOOST_FUSION_GPU_ENABLED
66 tuple& operator=(T const& rhs)
68 base_type::operator=(rhs);
72 BOOST_FUSION_GPU_ENABLED
73 tuple& operator=(tuple const& rhs)
75 base_type::operator=(static_cast<base_type const&>(rhs));
79 template <typename U1, typename U2>
80 BOOST_FUSION_GPU_ENABLED
81 tuple& operator=(std::pair<U1, U2> const& rhs)
83 base_type::operator=(rhs);
88 template <typename Tuple>
89 struct tuple_size : result_of::size<Tuple> {};
91 template <int N, typename Tuple>
92 struct tuple_element : result_of::value_at_c<Tuple, N> {};
94 template <int N, typename Tuple>
95 BOOST_FUSION_GPU_ENABLED
99 , result_of::at_c<Tuple, N>
106 template <int N, typename Tuple>
107 BOOST_FUSION_GPU_ENABLED
108 inline typename result_of::at_c<Tuple const, N>::type
109 get(Tuple const& tup)
115 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
116 #pragma wave option(output: null)
119 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES