43 #pragma GCC system_header
47 #include <boost/mpl/is_sequence.hpp>
48 #include <boost/mpl/begin_end.hpp>
49 #include <boost/mpl/next_prior.hpp>
50 #include <boost/mpl/deref.hpp>
51 #include <boost/mpl/assert.hpp>
52 #include <boost/mpl/remove_if.hpp>
53 #include <boost/mpl/contains.hpp>
54 #include <boost/mpl/not.hpp>
55 #include <boost/mpl/aux_/unwrap.hpp>
58 #include <type_traits>
63 template <
bool done = true>
66 template<
typename Iterator,
typename LastIterator,
typename F>
74 template<
typename Iterator,
typename LastIterator,
typename F>
77 using arg =
typename boost::mpl::deref<Iterator>::type;
79 #if (defined _WIN32 && defined _MSC_VER)
80 boost::mpl::aux::unwrap (f, 0).operator()<arg> ();
82 boost::mpl::aux::unwrap (f, 0).template operator()<arg> ();
85 using iter =
typename boost::mpl::next<Iterator>::type;
87 ::template execute<iter, LastIterator, F> (f);
92 template<
typename Sequence,
typename F>
inline void
95 BOOST_MPL_ASSERT (( boost::mpl::is_sequence<Sequence> ));
96 using first =
typename boost::mpl::begin<Sequence>::type;
97 using last =
typename boost::mpl::end<Sequence>::type;
102 template <
typename Sequence1,
typename Sequence2>
105 using type =
typename boost::mpl::remove_if<Sequence1, boost::mpl::not_<boost::mpl::contains<Sequence2, boost::mpl::_1> > >
::type;