18 #include <boost/iterator/filter_iterator.hpp>
22 #ifndef PAAL_ITERATOR_UTILS_HPP
23 #define PAAL_ITERATOR_UTILS_HPP
33 template <
typename Iterator>
36 utils::not_equal_to(),
37 std::declval<typename std::iterator_traits<Iterator>::value_type>(),
38 std::placeholders::_1)),
41 typedef typename std::iterator_traits<Iterator>::value_type Element;
50 : boost::filter_iterator<
51 decltype(std::bind(utils::
not_equal_to(), std::declval<Element>(),
52 std::placeholders::_1)),
54 std::placeholders::_1),
63 #endif // PAAL_ITERATOR_UTILS_HPP
this iterator exlcludes one specific element from range
This file contains set of simple useful functors or functor adapters.
iterator_with_excluded_element(Iterator i, Iterator end, const Element &e)
constructor