1 // Copyright (C) 2013 Vicente J. Botet Escriba 2 // 3 // Distributed under the Boost Software License, Version 1.0. (See accompanying 4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 // 6 // 2013/10 Vicente J. Botet Escriba 7 // Creation. 8 9 #ifndef BOOST_CSBL_TUPLE_HPP 10 #define BOOST_CSBL_TUPLE_HPP 11 12 #include <boost/config.hpp> 13 14 #if defined BOOST_THREAD_USES_BOOST_TUPLE || defined BOOST_NO_CXX11_HDR_TUPLE || defined BOOST_NO_CXX11_RVALUE_REFERENCES 15 #include <boost/tuple/tuple.hpp> 16 #ifndef BOOST_THREAD_USES_BOOST_TUPLE 17 #define BOOST_THREAD_USES_BOOST_TUPLE 18 #endif 19 20 #else 21 #include <tuple> 22 #endif 23 24 namespace boost 25 { 26 namespace csbl 27 { 28 #if defined BOOST_THREAD_USES_BOOST_TUPLE 29 using ::boost::tuple; 30 using ::boost::get; 31 using ::boost::make_tuple; 32 //using ::boost::tuple_size; 33 #else 34 // 20.4.2, class template tuple: 35 using ::std::tuple; 36 using ::std::get; 37 using ::std::make_tuple; 38 using ::std::tuple_size; 39 // 20.4.2.4, tuple creation functions: 40 // 20.4.2.5, tuple helper classes: 41 // 20.4.2.6, element access: 42 // 20.4.2.7, relational operators: 43 // 20.4.2.8, allocator-related traits 44 // 20.4.2.9, specialized algorithms: 45 #endif 46 47 } 48 } 49 #endif // header 50