MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / parallel_sort

Function parallel_sort

benchmarks/tbb/parallel_sort.h:195–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 @ingroup algorithms **/
194template<typename RandomAccessIterator, typename Compare>
195void parallel_sort( RandomAccessIterator begin, RandomAccessIterator end, const Compare& comp) {
196 const int min_parallel_size = 500;
197 if( end > begin ) {
198 if (end - begin < min_parallel_size) {
199 std::sort(begin, end, comp);
200 } else {
201 internal::parallel_quick_sort(begin, end, comp);
202 }
203 }
204}
205
206//! Sorts the data in [begin,end) with a default comparator \c std::less<RandomAccessIterator>
207/** @ingroup algorithms **/

Callers

nothing calls this directly

Calls 3

parallel_quick_sortFunction · 0.85
firstFunction · 0.85
lastFunction · 0.85

Tested by

no test coverage detected