Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:47:51

0001 /*=============================================================================
0002     Copyright (c) 2014 Kohei Takahashi
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #ifndef FUSION_VECTOR_TIE_11112014_2302
0008 #define FUSION_VECTOR_TIE_11112014_2302
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/container/vector/detail/config.hpp>
0012 
0013 #if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR)
0014 # include <boost/fusion/container/generation/detail/pp_vector_tie.hpp>
0015 #else
0016 
0017 ///////////////////////////////////////////////////////////////////////////////
0018 // C++11 variadic interface
0019 ///////////////////////////////////////////////////////////////////////////////
0020 
0021 namespace boost { namespace fusion
0022 {
0023     namespace result_of
0024     {
0025         template <typename ...T>
0026         struct vector_tie
0027         {
0028             typedef vector<T&...> type;
0029         };
0030     }
0031 
0032     template <typename ...T>
0033     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0034     inline vector<T&...>
0035     vector_tie(T&... arg)
0036     {
0037         return vector<T&...>(arg...);
0038     }
0039  }}
0040 
0041 
0042 #endif
0043 #endif
0044