Template Function concore::conc_sort(It, It, const Comp&, task_group)¶
Defined in File conc_sort.hpp
Function Documentation¶
-
template<typename
It, typenameComp>
voidconcore::conc_sort(It begin, It end, const Comp &comp, task_group grp)¶ Concurrently sort a collection of elements.
Sorts the given collection of elements concurrently. The comparison function must be able to be called in parallel without causing any data races.
- Parameters
begin: Iterator pointing to the first element in the collectionend: Iterator pointing to one past the last element in the collectioncomp: The comparison functorgrp: Group in which to execute the tasks
- Template Parameters
It: The type of the iterator over the collection of elementsComp: The type of the comparison functor