Sha256: 593b2ab6060c9d8b75d656134d40099acf46e945feb6cf9986516f7ae4d6d36b

Contents?: true

Size: 1.91 KB

Versions: 29

Compression:

Stored size: 1.91 KB

Contents

//  tuple.hpp - Boost Tuple Library --------------------------------------

// Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi)
//
// 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)

// For more information, see http://www.boost.org

// ----------------------------------------------------------------- 

#ifndef BOOST_TUPLE_HPP
#define BOOST_TUPLE_HPP

#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730
// Work around a compiler bug.
// boost::python::tuple has to be seen by the compiler before the
// boost::tuple class template.
namespace boost { namespace python { class tuple; }}
#endif

#include "boost/config.hpp"
#include "boost/static_assert.hpp"

// other compilers
#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
//
// The "using tuples::get" statement causes the
// Borland compiler to ICE, use forwarding
// functions instead:
//
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);
} 
// get function for const cons-lists, returns a const reference to
// the element. If the element is a reference, returns the reference
// as such (that is, can return a non-const reference)
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 // BOOST_NO_USING_TEMPLATE
   
} // end namespace boost


#endif // BOOST_TUPLE_HPP

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.12 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.11 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.10 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.9 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.8 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.7 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.6 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.5 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.4 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.3 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.2 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp
passenger-5.1.1 src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp