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/tuple/tuple_fwd.hpp>
11 #include <boost/fusion/container/vector/vector.hpp>
12 #include <boost/fusion/sequence/intrinsic/size.hpp>
13 #include <boost/fusion/sequence/intrinsic/value_at.hpp>
14 #include <boost/fusion/sequence/intrinsic/at.hpp>
15 #include <boost/fusion/sequence/comparison.hpp>
16 #include <boost/fusion/sequence/io.hpp>
17 #include <boost/utility/enable_if.hpp>
18 #include <boost/type_traits/is_const.hpp>
19 #include <boost/config/no_tr1/utility.hpp>
21 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
22 #include <boost/fusion/tuple/detail/preprocessed/tuple.hpp>
24 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
25 #pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/tuple" FUSION_MAX_VECTOR_SIZE_STR ".hpp")
28 /*=============================================================================
29 Copyright (c) 2001-2011 Joel de Guzman
31 Distributed under the Boost Software License, Version 1.0. (See accompanying
32 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
34 This is an auto-generated file. Do not edit!
35 ==============================================================================*/
37 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
38 #pragma wave option(preserve: 1)
41 namespace boost { namespace fusion
43 template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
44 struct tuple : vector<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>
47 BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>
53 tuple(tuple const& rhs)
56 template <typename U1, typename U2>
57 tuple(std::pair<U1, U2> const& rhs)
60 #include <boost/fusion/tuple/detail/tuple_expand.hpp>
63 tuple& operator=(T const& rhs)
65 base_type::operator=(rhs);
69 tuple& operator=(tuple const& rhs)
71 base_type::operator=(rhs);
75 template <typename U1, typename U2>
76 tuple& operator=(std::pair<U1, U2> const& rhs)
78 base_type::operator=(rhs);
83 template <typename Tuple>
84 struct tuple_size : result_of::size<Tuple> {};
86 template <int N, typename Tuple>
87 struct tuple_element : result_of::value_at_c<Tuple, N> {};
89 template <int N, typename Tuple>
93 , result_of::at_c<Tuple, N>
100 template <int N, typename Tuple>
101 inline typename result_of::at_c<Tuple const, N>::type
102 get(Tuple const& tup)
108 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
109 #pragma wave option(output: null)
112 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES