]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/tuple/tuple_tie.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / tuple / tuple_tie.hpp
1 /*=============================================================================
2 Copyright (c) 2014 Kohei Takahashi
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #ifndef FUSION_TUPLE_TIE_14122014_0115
8 #define FUSION_TUPLE_TIE_14122014_0115
9
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/tuple/tuple_fwd.hpp>
12
13 ///////////////////////////////////////////////////////////////////////////////
14 // With no variadics, we will use the C++03 version
15 ///////////////////////////////////////////////////////////////////////////////
16 #if !defined(BOOST_FUSION_HAS_VARIADIC_TUPLE)
17 # include <boost/fusion/tuple/detail/tuple_tie.hpp>
18 #else
19
20 ///////////////////////////////////////////////////////////////////////////////
21 // C++11 interface
22 ///////////////////////////////////////////////////////////////////////////////
23 #include <boost/fusion/tuple/tuple.hpp>
24
25 namespace boost { namespace fusion
26 {
27 template <typename ...T>
28 BOOST_FUSION_GPU_ENABLED
29 inline tuple<T&...>
30 tie(T&... arg)
31 {
32 return tuple<T&...>(arg...);
33 }
34 }}
35
36 #endif
37 #endif
38