Home
last modified time | relevance | path

Searched refs:is_sorted (Results 1 – 25 of 36) sorted by relevance

12

/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/is.sorted/
Dis_sorted.pass.cpp29 assert(std::is_sorted(Iter(a), Iter(a))); in test()
30 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
36 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
41 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
46 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test()
51 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
57 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
62 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
67 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test()
72 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
[all …]
Dis_sorted_comp.pass.cpp30 assert(std::is_sorted(Iter(a), Iter(a))); in test()
31 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
37 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
42 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
47 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
52 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
58 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
63 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
68 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
73 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
[all …]
/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
Dsort.pass.cpp34 assert(std::is_sorted(save, save+len)); in test_sort_helper()
90 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
94 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
97 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
101 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
105 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
110 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
Dsort_comp.pass.cpp42 assert(std::is_sorted(v.begin(), v.end())); in main()
51 assert(std::is_sorted(v.begin(), v.end(), indirect_less())); in main()
/external/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/
Dstable_sort.pass.cpp34 assert(std::is_sorted(save, save+len)); in test_sort_helper()
90 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
94 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
97 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
101 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
105 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
110 assert(std::is_sorted(array, array+N)); in test_larger_sorts()
Dstable_sort_comp.pass.cpp64 assert(std::is_sorted(v.begin(), v.end())); in test()
77 assert(std::is_sorted(v.begin(), v.end(), indirect_less())); in main()
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/
Dsort_heap_comp.pass.cpp40 assert(std::is_sorted(ia, ia+N, std::greater<int>())); in test()
62 assert(std::is_sorted(ia, ia+N, indirect_less())); in main()
Dsort_heap.pass.cpp28 assert(std::is_sorted(ia, ia+N)); in test()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
Dgim_hash_table.h616 inline bool is_sorted() in is_sorted() function
624 if(is_sorted()) return true; in sort()
773 if(is_sorted()) in erase_by_index()
821 if(is_sorted()==false) return false; in erase_by_key()
857 if(this->is_sorted()) in insert()
875 if(this->is_sorted()) in insert_override()
/external/libcxx/test/std/algorithms/alg.sorting/alg.merge/
Dinplace_merge_comp.pass.cpp79 assert(std::is_sorted(ia, ia+N, std::greater<value_type>())); in test_one()
141 assert(std::is_sorted(ia, ia+N, indirect_less())); in main()
Dmerge.pass.cpp44 assert(std::is_sorted(ic, ic+2*N)); in test()
66 assert(std::is_sorted(ic, ic+2*N)); in test()
Dmerge_comp.pass.cpp51 assert(std::is_sorted(ic, ic+2*N, std::greater<int>())); in test()
75 assert(std::is_sorted(ic, ic+2*N, std::greater<int>())); in test()
Dinplace_merge.pass.cpp62 assert(std::is_sorted(ia, ia+N)); in test_one()
/external/libcxx/test/std/experimental/algorithms/alg.random.sample/
Dsample.stable.pass.cpp45 unstable |= !std::is_sorted(oa, oa + kSampleSize); in test_stability()
/external/llvm/lib/MC/
DMCSubtargetInfo.cpp81 assert(std::is_sorted(ProcSchedModels, ProcSchedModels+NumProcs, in getSchedModelForCPU()
/external/llvm/lib/Target/Mips/
DMipsCCState.cpp34 assert(std::is_sorted(std::begin(LibCalls), std::end(LibCalls), Comp)); in isF128SoftLibCall()
/external/boringssl/src/crypto/x509/
Dx_crl.c482 const int is_sorted = sk_X509_REVOKED_is_sorted(crl->crl->revoked); in def_crl_lookup() local
485 if (!is_sorted) in def_crl_lookup()
/external/opencv3/apps/traincascade/
Dold_ml_inner_functions.cpp400 int i, idx_total, idx_selected = 0, step, type, prev = INT_MIN, is_sorted = 1; in cvPreprocessIndexArray() local
447 is_sorted = 0; in cvPreprocessIndexArray()
472 if( !is_sorted ) in cvPreprocessIndexArray()
Dboost.cpp124 int i, idx_total, idx_selected = 0, step, type, prev = INT_MIN, is_sorted = 1; in cvPreprocessIndexArray() local
171 is_sorted = 0; in cvPreprocessIndexArray()
196 if( !is_sorted ) in cvPreprocessIndexArray()
/external/opencv/ml/src/
Dml_inner_functions.cpp467 int i, idx_total, idx_selected = 0, step, type, prev = INT_MIN, is_sorted = 1; in cvPreprocessIndexArray() local
516 is_sorted = 0; in cvPreprocessIndexArray()
541 if( !is_sorted ) in cvPreprocessIndexArray()
/external/clang/lib/Basic/
DDiagnosticIDs.cpp103 assert(std::is_sorted(std::begin(StaticDiagInfo), in GetDiagInfo()
/external/llvm/tools/verify-uselistorder/
Dverify-uselistorder.cpp410 } while (std::is_sorted(V->use_begin(), V->use_end(), compareUses)); in shuffleValueUseLists()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp191 if (std::is_sorted( in predictValueUseListOrderImpl()
/external/clang/www/
Dlibstdc++4.4-clang0x.patch490 // is_sorted, a predicated testing whether a range is sorted in
/external/libcxx/include/
Dalgorithm320 is_sorted(ForwardIterator first, ForwardIterator last);
324 is_sorted(ForwardIterator first, ForwardIterator last, Compare comp);
3578 // is_sorted
3583 is_sorted(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
3591 is_sorted(_ForwardIterator __first, _ForwardIterator __last)
3593 …return _VSTD::is_sorted(__first, __last, __less<typename iterator_traits<_ForwardIterator>::value_…

12