Template Function concore::conc_sort(It, It, const Comp&, task_group)

Function Documentation

template<typename It, typename Comp>
void concore::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 collection

  • end: Iterator pointing to one past the last element in the collection

  • comp: The comparison functor

  • grp: Group in which to execute the tasks

Template Parameters
  • It: The type of the iterator over the collection of elements

  • Comp: The type of the comparison functor