/external/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/ |
D | search_n_pred.pass.cpp | 36 struct count_equal struct 44 unsigned count_equal::count = 0; argument 53 count_equal::count = 0; in test() 54 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 0, count_equal()) == Iter(ia)); in test() 55 assert(count_equal::count <= sa); in test() 56 count_equal::count = 0; in test() 57 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 0, count_equal()) == Iter(ia+0)); in test() 58 assert(count_equal::count <= sa); in test() 59 count_equal::count = 0; in test() 60 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 0, count_equal()) == Iter(ia+sa)); in test() [all …]
|
D | search_pred.pass.cpp | 36 struct count_equal struct 44 unsigned count_equal::count = 0; argument 52 count_equal::count = 0; in test() 53 assert(std::search(Iter1(ia), Iter1(ia+sa), Iter2(ia), Iter2(ia), count_equal()) == Iter1(ia)); in test() 54 assert(count_equal::count <= 0); in test() 55 count_equal::count = 0; in test() 56 … assert(std::search(Iter1(ia), Iter1(ia+sa), Iter2(ia), Iter2(ia+1), count_equal()) == Iter1(ia)); in test() 57 assert(count_equal::count <= sa); in test() 58 count_equal::count = 0; in test() 59 …assert(std::search(Iter1(ia), Iter1(ia+sa), Iter2(ia+1), Iter2(ia+2), count_equal()) == Iter1(ia+1… in test() [all …]
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/ |
D | unique_pred.pass.cpp | 38 struct count_equal struct 46 unsigned count_equal::count = 0; argument 54 count_equal::count = 0; in test() 55 Iter r = std::unique(Iter(ia), Iter(ia+sa), count_equal()); in test() 58 assert(count_equal::count == sa-1); in test() 62 count_equal::count = 0; in test() 63 r = std::unique(Iter(ib), Iter(ib+sb), count_equal()); in test() 67 assert(count_equal::count == sb-1); in test() 71 count_equal::count = 0; in test() 72 r = std::unique(Iter(ic), Iter(ic+sc), count_equal()); in test() [all …]
|
D | unique_copy_pred.pass.cpp | 42 struct count_equal struct 50 unsigned count_equal::count = 0; argument 59 count_equal::count = 0; in test() 60 OutIter r = std::unique_copy(InIter(ia), InIter(ia+sa), OutIter(ja), count_equal()); in test() 63 assert(count_equal::count == sa-1); in test() 68 count_equal::count = 0; in test() 69 r = std::unique_copy(InIter(ib), InIter(ib+sb), OutIter(jb), count_equal()); in test() 73 assert(count_equal::count == sb-1); in test() 78 count_equal::count = 0; in test() 79 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc), count_equal()); in test() [all …]
|
/external/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.end/ |
D | find_end_pred.pass.cpp | 25 struct count_equal struct 52 unsigned count_equal::count = 0; argument 61 count_equal::count = 0; in test() 62 …assert(std::find_end(Iter1(ia), Iter1(ia+sa), Iter2(b), Iter2(b+1), count_equal()) == Iter1(ia+sa-… in test() 63 assert(count_equal::count <= 1*(sa-1+1)); in test() 65 count_equal::count = 0; in test() 66 …assert(std::find_end(Iter1(ia), Iter1(ia+sa), Iter2(c), Iter2(c+2), count_equal()) == Iter1(ia+18)… in test() 67 assert(count_equal::count <= 2*(sa-2+1)); in test() 69 count_equal::count = 0; in test() 70 …assert(std::find_end(Iter1(ia), Iter1(ia+sa), Iter2(d), Iter2(d+3), count_equal()) == Iter1(ia+15)… in test() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.search/func.search.default/ |
D | default.pred.pass.cpp | 41 struct count_equal struct 49 unsigned count_equal::count = 0; argument 53 std::default_searcher<Iter2, count_equal> s{b2, e2}; in do_search() 54 count_equal::count = 0; in do_search() 56 assert(count_equal::count <= max_count); in do_search()
|
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.default/ |
D | default.pred.pass.cpp | 41 struct count_equal struct 49 unsigned count_equal::count = 0; argument 53 std::experimental::default_searcher<Iter2, count_equal> s{b2, e2}; in do_search() 54 count_equal::count = 0; in do_search() 56 assert(count_equal::count <= max_count); in do_search()
|
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.default/func.searchers.default.creation/ |
D | make_default_searcher.pred.pass.cpp | 26 struct count_equal struct 34 unsigned count_equal::count = 0; argument 38 count_equal::count = 0; in do_search() 41 assert(count_equal::count <= max_count); in do_search()
|
/external/libcxx/test/std/utilities/function.objects/func.search/func.search.bmh/ |
D | hash.pred.pass.cpp | 45 struct count_equal struct 53 unsigned count_equal::count = 0; argument 59 count_equal> in do_search() 61 count_equal::count = 0; in do_search() 63 assert(count_equal::count <= max_count); in do_search()
|
D | pred.pass.cpp | 41 struct count_equal struct 49 unsigned count_equal::count = 0; argument 54 …me std::remove_cv<typename std::iterator_traits<Iter2>::value_type>::type>, count_equal> s{b2, e2}; in do_search() 55 count_equal::count = 0; in do_search() 57 assert(count_equal::count <= max_count); in do_search()
|
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.boyer_moore_horspool/ |
D | hash.pred.pass.cpp | 44 struct count_equal struct 52 unsigned count_equal::count = 0; argument 58 count_equal> in do_search() 60 count_equal::count = 0; in do_search() 62 assert(count_equal::count <= max_count); in do_search()
|
D | pred.pass.cpp | 40 struct count_equal struct 48 unsigned count_equal::count = 0; argument 53 …me std::remove_cv<typename std::iterator_traits<Iter2>::value_type>::type>, count_equal> s{b2, e2}; in do_search() 54 count_equal::count = 0; in do_search() 56 assert(count_equal::count <= max_count); in do_search()
|
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.boyer_moore/ |
D | hash.pred.pass.cpp | 45 struct count_equal struct 53 unsigned count_equal::count = 0; argument 59 count_equal> in do_search() 61 count_equal::count = 0; in do_search() 63 assert(count_equal::count <= max_count); in do_search()
|
D | pred.pass.cpp | 41 struct count_equal struct 49 unsigned count_equal::count = 0; argument 54 …me std::remove_cv<typename std::iterator_traits<Iter2>::value_type>::type>, count_equal> s{b2, e2}; in do_search() 55 count_equal::count = 0; in do_search() 57 assert(count_equal::count <= max_count); in do_search()
|
/external/libcxx/test/std/utilities/function.objects/func.search/func.search.bm/ |
D | hash.pred.pass.cpp | 46 struct count_equal struct 54 unsigned count_equal::count = 0; argument 60 count_equal> in do_search() 62 count_equal::count = 0; in do_search() 64 assert(count_equal::count <= max_count); in do_search()
|
D | pred.pass.cpp | 42 struct count_equal struct 50 unsigned count_equal::count = 0; argument 55 …me std::remove_cv<typename std::iterator_traits<Iter2>::value_type>::type>, count_equal> s{b2, e2}; in do_search() 56 count_equal::count = 0; in do_search() 58 assert(count_equal::count <= max_count); in do_search()
|