2 Copyright (c) T. Zachary Laine 2018.
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_ALGORITHM_FIND_NOT_HPP
8 #define BOOST_ALGORITHM_FIND_NOT_HPP
12 #include <boost/config.hpp>
13 #include <boost/range/begin.hpp>
14 #include <boost/range/end.hpp>
16 namespace boost { namespace algorithm {
18 template<typename InputIter, typename Sentinel, typename T>
20 InputIter find_not(InputIter first, Sentinel last, const T & x)
22 for (; first != last; ++first) {
29 template<typename Range, typename T>
31 typename boost::range_iterator<Range>::type find_not(Range & r, const T & x)
33 return ::boost::algorithm::find_not(boost::begin(r), boost::end(r), x);
36 }} // namespace boost and algorithm
38 #endif // BOOST_ALGORITHM_FIND_NOT_HPP