File indexing completed on 2025-01-18 09:33:53
0001
0002
0003
0004
0005
0006
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