File indexing completed on 2025-01-18 09:31:17
0001
0002
0003
0004
0005
0006
0007 #if !defined(FUSION_REMOVE_07162005_0818)
0008 #define FUSION_REMOVE_07162005_0818
0009
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/view/filter_view/filter_view.hpp>
0012 #include <boost/mpl/not.hpp>
0013 #include <boost/type_traits/is_same.hpp>
0014
0015 namespace boost { namespace fusion
0016 {
0017 namespace result_of
0018 {
0019 template <typename Sequence, typename T>
0020 struct remove
0021 {
0022 typedef filter_view<Sequence, mpl::not_<is_same<mpl::_, T> > > type;
0023 };
0024 }
0025
0026 template <typename T, typename Sequence>
0027 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0028 inline typename result_of::remove<Sequence const, T>::type
0029 remove(Sequence const& seq)
0030 {
0031 typedef typename result_of::remove<Sequence const, T>::type result_type;
0032 return result_type(seq);
0033 }
0034 }}
0035
0036 #endif
0037