Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:33:53

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003     Copyright (c) 2005-2006 Dan Marsden
0004 
0005     Distributed under the Boost Software License, Version 1.0. (See accompanying
0006     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 ==============================================================================*/
0008 #if !defined(FUSION_CONVERT_IMPL_09232005_1341)
0009 #define FUSION_CONVERT_IMPL_09232005_1341
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/container/set/detail/as_set.hpp>
0013 #include <boost/fusion/container/set/set.hpp>
0014 #include <boost/fusion/sequence/intrinsic/begin.hpp>
0015 #include <boost/fusion/sequence/intrinsic/size.hpp>
0016 
0017 namespace boost { namespace fusion
0018 {
0019     struct set_tag;
0020 
0021     namespace extension
0022     {
0023         template <typename T>
0024         struct convert_impl;
0025 
0026         template <>
0027         struct convert_impl<set_tag>
0028         {
0029             template <typename Sequence>
0030             struct apply
0031             {
0032                 typedef detail::as_set<result_of::size<Sequence>::value> gen;
0033                 typedef typename gen::
0034                     template apply<typename result_of::begin<Sequence>::type>::type
0035                 type;
0036 
0037                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0038                 static type call(Sequence& seq)
0039                 {
0040                     return gen::call(fusion::begin(seq));
0041                 }
0042             };
0043         };
0044     }
0045 }}
0046 
0047 #endif