File indexing completed on 2025-01-18 09:33:20
0001
0002
0003
0004
0005
0006
0007
0008 #if !defined(FUSION_END_IMPL_07172005_0828)
0009 #define FUSION_END_IMPL_07172005_0828
0010
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/mpl/if.hpp>
0013 #include <boost/type_traits/is_const.hpp>
0014
0015 namespace boost { namespace fusion
0016 {
0017 struct nil_;
0018
0019 struct cons_tag;
0020
0021 template <typename Car, typename Cdr>
0022 struct cons;
0023
0024 template <typename Cons>
0025 struct cons_iterator;
0026
0027 namespace extension
0028 {
0029 template <typename Tag>
0030 struct end_impl;
0031
0032 template <>
0033 struct end_impl<cons_tag>
0034 {
0035 template <typename Sequence>
0036 struct apply
0037 {
0038 typedef cons_iterator<
0039 typename mpl::if_<is_const<Sequence>, nil_ const, nil_>::type>
0040 type;
0041
0042 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0043 static type
0044 call(Sequence&)
0045 {
0046 return type();
0047 }
0048 };
0049 };
0050 }
0051 }}
0052
0053 #endif