Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cpanel
/
ea-ruby27
/
src
/
passenger-release-6.1.0
/
src
/
cxx_supportlib
/
vendor-modified
/
boost
/
tuple
[ HOME ]
Exec
Submit
File Name : tuple.hpp
// 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/core/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 #if !defined(BOOST_NO_CXX11_HDR_TUPLE) #include <tuple> #include <cstddef> namespace std { #if defined(BOOST_CLANG) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wmismatched-tags" #endif // std::tuple_size template<class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10> class tuple_size< boost::tuples::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> >: public boost::tuples::length< boost::tuples::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> > { }; template<class H, class T> class tuple_size< boost::tuples::cons<H, T> >: public boost::tuples::length< boost::tuples::cons<H, T> > { }; template<> class tuple_size< boost::tuples::null_type >: public boost::tuples::length< boost::tuples::null_type > { }; // std::tuple_element template<std::size_t I, class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10> class tuple_element< I, boost::tuples::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> >: public boost::tuples::element< I, boost::tuples::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> > { }; template<std::size_t I, class H, class T> class tuple_element< I, boost::tuples::cons<H, T> >: public boost::tuples::element< I, boost::tuples::cons<H, T> > { }; #if defined(BOOST_CLANG) # pragma clang diagnostic pop #endif } // namespace std #endif // !defined(BOOST_NO_CXX11_HDR_TUPLE) #endif // BOOST_TUPLE_HPP
Back
Folder Name
Submit
File Name
File Content
Submit
Name
Type
Size
Permission
Last Modified
Actions
.
dir
-
0755
2025-12-17 06:00:31
..
dir
-
0755
2025-12-17 06:00:31
detail
dir
-
0755
2025-12-17 06:00:31
tuple.hpp
text/x-c++
3.32 KB
0644
2025-09-16 04:56:08