/usr/include/boost/math/tools/tuple.hpp is in libboost1.46-dev 1.46.1-7ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | // (C) Copyright John Maddock 2010.
// Use, modification and distribution are subject to 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)
#ifndef BOOST_MATH_TUPLE_HPP_INCLUDED
# define BOOST_MATH_TUPLE_HPP_INCLUDED
# include <boost/config.hpp>
#include <boost/tr1/detail/config.hpp> // for BOOST_HAS_TR1_TUPLE
#ifndef BOOST_NO_0X_HDR_TUPLE
#include <tuple>
namespace boost{ namespace math{
using ::std::tuple;
// [6.1.3.2] Tuple creation functions
using ::std::ignore;
using ::std::make_tuple;
using ::std::tie;
using ::std::get;
// [6.1.3.3] Tuple helper classes
using ::std::tuple_size;
using ::std::tuple_element;
}}
#elif defined(BOOST_HAS_TR1_TUPLE)
#include <tuple>
namespace boost{ namespace math{
using ::std::tr1::tuple;
// [6.1.3.2] Tuple creation functions
using ::std::tr1::ignore;
using ::std::tr1::make_tuple;
using ::std::tr1::tie;
using ::std::tr1::get;
// [6.1.3.3] Tuple helper classes
using ::std::tr1::tuple_size;
using ::std::tr1::tuple_element;
}}
#elif (defined(__BORLANDC__) && (__BORLANDC__ <= 0x600)) || (defined(_MSC_VER) && (_MSC_VER < 1310)) || defined(__IBMCPP__)
#include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp>
#include <boost/type_traits/integral_constant.hpp>
namespace boost{ namespace math{
using ::boost::tuple;
// [6.1.3.2] Tuple creation functions
using ::boost::tuples::ignore;
using ::boost::make_tuple;
using ::boost::tie;
// [6.1.3.3] Tuple helper classes
template <class T>
struct tuple_size
: public ::boost::integral_constant
< ::std::size_t, ::boost::tuples::length<T>::value>
{};
template < int I, class T>
struct tuple_element
{
typedef typename boost::tuples::element<I,T>::type type;
};
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
// [6.1.3.4] Element access
using ::boost::get;
#endif
} } // namespaces
#else
#include <boost/fusion/include/tuple.hpp>
#include <boost/fusion/include/std_pair.hpp>
namespace boost{ namespace math{
using ::boost::fusion::tuple;
// [6.1.3.2] Tuple creation functions
using ::boost::fusion::ignore;
using ::boost::fusion::make_tuple;
using ::boost::fusion::tie;
using ::boost::fusion::get;
// [6.1.3.3] Tuple helper classes
using ::boost::fusion::tuple_size;
using ::boost::fusion::tuple_element;
}}
#endif
#endif
|