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_MAKE_LIST_10262014_0647
0008 #define FUSION_MAKE_LIST_10262014_0647
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/container/list/list.hpp>
0012 
0013 #if !defined(BOOST_FUSION_HAS_VARIADIC_LIST)
0014 # include <boost/fusion/container/generation/detail/pp_make_list.hpp>
0015 #else
0016 
0017 ///////////////////////////////////////////////////////////////////////////////
0018 // C++11 variadic interface
0019 ///////////////////////////////////////////////////////////////////////////////
0020 
0021 #include <boost/fusion/support/detail/as_fusion_element.hpp>
0022 
0023 namespace boost { namespace fusion
0024 {
0025     namespace result_of
0026     {
0027         template <typename ...T>
0028         struct make_list
0029         {
0030             typedef list<typename detail::as_fusion_element<T>::type...> type;
0031         };
0032     }
0033 
0034     template <typename ...T>
0035     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0036     inline typename result_of::make_list<T...>::type
0037     make_list(T const&... arg)
0038     {
0039         return typename result_of::make_list<T...>::type(arg...);
0040     }
0041  }}
0042 
0043 
0044 #endif
0045 #endif
0046