40 #ifndef PCL_FOR_EACH_TYPE_H_
41 #define PCL_FOR_EACH_TYPE_H_
44 #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>
56 #include <boost/type_traits/is_same.hpp>
61 template <
bool done = true>
64 template<
typename Iterator,
typename LastIterator,
typename F>
72 template<
typename Iterator,
typename LastIterator,
typename F>
75 typedef typename boost::mpl::deref<Iterator>::type arg;
77 #if (defined _WIN32 && defined _MSC_VER)
78 boost::mpl::aux::unwrap (f, 0).operator()<arg> ();
80 boost::mpl::aux::unwrap (f, 0).template operator()<arg> ();
83 typedef typename boost::mpl::next<Iterator>::type iter;
85 ::template execute<iter, LastIterator, F> (f);
90 template<
typename Sequence,
typename F>
inline void
93 BOOST_MPL_ASSERT (( boost::mpl::is_sequence<Sequence> ));
94 typedef typename boost::mpl::begin<Sequence>::type first;
95 typedef typename boost::mpl::end<Sequence>::type last;
100 template <
typename Sequence1,
typename Sequence2>
103 typedef typename boost::mpl::remove_if<Sequence1, boost::mpl::not_<boost::mpl::contains<Sequence2, boost::mpl::_1> > >
::type type;
107 #endif //#ifndef PCL_FOR_EACH_TYPE_H_