1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template<InputIterator Iter, Predicate<auto, Iter::value_type> Pred>
13 // requires CopyConstructible<Pred>
15 // find_if_not(Iter first, Iter last, Pred pred);
21 #include "test_iterators.h"
24 ne (int val) : v(val) {}
25 bool operator () (int v2) const { return v != v2; }
32 int ia[] = {0, 1, 2, 3, 4, 5};
33 const unsigned s = sizeof(ia)/sizeof(ia[0]);
34 input_iterator<const int*> r = std::find_if_not(input_iterator<const int*>(ia),
35 input_iterator<const int*>(ia+s),
38 r = std::find_if_not(input_iterator<const int*>(ia),
39 input_iterator<const int*>(ia+s),
41 assert(r == input_iterator<const int*>(ia+s));