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