]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/container/generation/vector_tie.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / generation / vector_tie.hpp
CommitLineData
7c673cae
FG
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_VECTOR_TIE_11112014_2302
8#define FUSION_VECTOR_TIE_11112014_2302
9
10#include <boost/fusion/support/config.hpp>
11#include <boost/fusion/container/vector/detail/config.hpp>
12
13#if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR)
14# include <boost/fusion/container/generation/detail/pp_vector_tie.hpp>
15#else
16
17///////////////////////////////////////////////////////////////////////////////
18// C++11 variadic interface
19///////////////////////////////////////////////////////////////////////////////
20
21namespace boost { namespace fusion
22{
23 namespace result_of
24 {
25 template <typename ...T>
26 struct vector_tie
27 {
28 typedef vector<T&...> type;
29 };
30 }
31
32 template <typename ...T>
33 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
34 inline vector<T&...>
35 vector_tie(T&... arg)
36 {
37 return vector<T&...>(arg...);
38 }
39 }}
40
41
42#endif
43#endif
44