Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:25

0001 /*
0002    Copyright (c) T. Zachary Laine 2018.
0003 
0004    Distributed under the Boost Software License, Version 1.0. (See accompanying
0005    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 #ifndef BOOST_ALGORITHM_FIND_NOT_HPP
0008 #define BOOST_ALGORITHM_FIND_NOT_HPP
0009 
0010 #include <utility>
0011 
0012 #include <boost/config.hpp>
0013 #include <boost/range/begin.hpp>
0014 #include <boost/range/end.hpp>
0015 
0016 namespace boost { namespace algorithm {
0017 
0018 template<typename InputIter, typename Sentinel, typename T>        
0019 BOOST_CXX14_CONSTEXPR
0020 InputIter find_not(InputIter first, Sentinel last, const T & x)
0021 {
0022     for (; first != last; ++first) {
0023         if (*first != x)
0024             break;
0025     }
0026     return first;
0027 }
0028 
0029 template<typename Range, typename T>
0030 BOOST_CXX14_CONSTEXPR
0031 typename boost::range_iterator<Range>::type find_not(Range & r, const T & x)
0032 {
0033     return ::boost::algorithm::find_not(boost::begin(r), boost::end(r), x);
0034 }
0035 
0036 }} // namespace boost and algorithm
0037 
0038 #endif // BOOST_ALGORITHM_FIND_NOT_HPP