sl@0
|
1 |
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
2 |
|
sl@0
|
3 |
#ifndef BOOST_TR1_TUPLE_HPP_INCLUDED
|
sl@0
|
4 |
# define BOOST_TR1_TUPLE_HPP_INCLUDED
|
sl@0
|
5 |
# include <boost/tr1/detail/config.hpp>
|
sl@0
|
6 |
|
sl@0
|
7 |
#ifdef BOOST_HAS_TR1_TUPLE
|
sl@0
|
8 |
|
sl@0
|
9 |
# include BOOST_TR1_HEADER(tuple)
|
sl@0
|
10 |
|
sl@0
|
11 |
#else
|
sl@0
|
12 |
|
sl@0
|
13 |
#if defined(BOOST_TR1_USE_OLD_TUPLE)
|
sl@0
|
14 |
|
sl@0
|
15 |
#include <boost/tuple/tuple.hpp>
|
sl@0
|
16 |
#include <boost/tuple/tuple_comparison.hpp>
|
sl@0
|
17 |
#include <boost/type_traits/integral_constant.hpp>
|
sl@0
|
18 |
|
sl@0
|
19 |
namespace std{ namespace tr1{
|
sl@0
|
20 |
|
sl@0
|
21 |
using ::boost::tuple;
|
sl@0
|
22 |
|
sl@0
|
23 |
// [6.1.3.2] Tuple creation functions
|
sl@0
|
24 |
using ::boost::tuples::ignore;
|
sl@0
|
25 |
using ::boost::make_tuple;
|
sl@0
|
26 |
using ::boost::tie;
|
sl@0
|
27 |
|
sl@0
|
28 |
// [6.1.3.3] Tuple helper classes
|
sl@0
|
29 |
template <class T>
|
sl@0
|
30 |
struct tuple_size
|
sl@0
|
31 |
: public ::boost::integral_constant
|
sl@0
|
32 |
< ::std::size_t, ::boost::tuples::length<T>::value>
|
sl@0
|
33 |
{};
|
sl@0
|
34 |
|
sl@0
|
35 |
template < int I, class T>
|
sl@0
|
36 |
struct tuple_element
|
sl@0
|
37 |
{
|
sl@0
|
38 |
typedef typename boost::tuples::element<I,T>::type type;
|
sl@0
|
39 |
};
|
sl@0
|
40 |
|
sl@0
|
41 |
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
|
sl@0
|
42 |
// [6.1.3.4] Element access
|
sl@0
|
43 |
using ::boost::get;
|
sl@0
|
44 |
#endif
|
sl@0
|
45 |
|
sl@0
|
46 |
} } // namespaces
|
sl@0
|
47 |
|
sl@0
|
48 |
#else
|
sl@0
|
49 |
|
sl@0
|
50 |
#include <boost/spirit/fusion/sequence/tuple.hpp>
|
sl@0
|
51 |
#include <boost/spirit/fusion/sequence/tuple_element.hpp>
|
sl@0
|
52 |
#include <boost/spirit/fusion/sequence/tuple_size.hpp>
|
sl@0
|
53 |
#include <boost/spirit/fusion/sequence/make_tuple.hpp>
|
sl@0
|
54 |
#include <boost/spirit/fusion/sequence/tie.hpp>
|
sl@0
|
55 |
#include <boost/spirit/fusion/sequence/get.hpp>
|
sl@0
|
56 |
#include <boost/spirit/fusion/sequence/equal_to.hpp>
|
sl@0
|
57 |
#include <boost/spirit/fusion/sequence/not_equal_to.hpp>
|
sl@0
|
58 |
#include <boost/spirit/fusion/sequence/less.hpp>
|
sl@0
|
59 |
#include <boost/spirit/fusion/sequence/less_equal.hpp>
|
sl@0
|
60 |
#include <boost/spirit/fusion/sequence/greater.hpp>
|
sl@0
|
61 |
#include <boost/spirit/fusion/sequence/greater_equal.hpp>
|
sl@0
|
62 |
|
sl@0
|
63 |
namespace std{ namespace tr1{
|
sl@0
|
64 |
|
sl@0
|
65 |
using ::boost::fusion::tuple;
|
sl@0
|
66 |
|
sl@0
|
67 |
// [6.1.3.2] Tuple creation functions
|
sl@0
|
68 |
using ::boost::fusion::ignore;
|
sl@0
|
69 |
using ::boost::fusion::make_tuple;
|
sl@0
|
70 |
using ::boost::fusion::tie;
|
sl@0
|
71 |
using ::boost::fusion::get;
|
sl@0
|
72 |
|
sl@0
|
73 |
// [6.1.3.3] Tuple helper classes
|
sl@0
|
74 |
using ::boost::fusion::tuple_size;
|
sl@0
|
75 |
using ::boost::fusion::tuple_element;
|
sl@0
|
76 |
|
sl@0
|
77 |
}}
|
sl@0
|
78 |
|
sl@0
|
79 |
#endif
|
sl@0
|
80 |
|
sl@0
|
81 |
#endif
|
sl@0
|
82 |
|
sl@0
|
83 |
#endif
|