/* Copyright (c) T. Zachary Laine 2018. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef ACTIV_BOOST_ALGORITHM_FIND_NOT_HPP #define ACTIV_BOOST_ALGORITHM_FIND_NOT_HPP #include #include #include #include namespace Boost { namespace algorithm { template ACTIV_BOOST_CXX14_CONSTEXPR InputIter find_not(InputIter first, Sentinel last, const T & x) { for (; first != last; ++first) { if (*first != x) break; } return first; } template ACTIV_BOOST_CXX14_CONSTEXPR typename Boost::range_iterator::type find_not(Range & r, const T & x) { return ::Boost::algorithm::find_not(Boost::begin(r), Boost::end(r), x); } }} // namespace Boost and algorithm #endif // ACTIV_BOOST_ALGORITHM_FIND_NOT_HPP