12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef BOOST_TUPLE_HPP
- #define BOOST_TUPLE_HPP
- #if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730
- namespace boost { namespace python { class tuple; }}
- #endif
- #include "boost/config.hpp"
- #include "boost/static_assert.hpp"
- #include "boost/ref.hpp"
- #include "boost/tuple/detail/tuple_basic.hpp"
- namespace boost {
- using tuples::tuple;
- using tuples::make_tuple;
- using tuples::tie;
- #if !defined(BOOST_NO_USING_TEMPLATE)
- using tuples::get;
- #else
- template<int N, class HT, class TT>
- inline typename tuples::access_traits<
- typename tuples::element<N, tuples::cons<HT, TT> >::type
- >::non_const_type
- get(tuples::cons<HT, TT>& c) {
- return tuples::get<N,HT,TT>(c);
- }
- template<int N, class HT, class TT>
- inline typename tuples::access_traits<
- typename tuples::element<N, tuples::cons<HT, TT> >::type
- >::const_type
- get(const tuples::cons<HT, TT>& c) {
- return tuples::get<N,HT,TT>(c);
- }
- #endif
-
- }
- #endif
|