Skip to content
Snippets Groups Projects
Commit 55cdf48c authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

algo: Add docstring to Sort function.

parent 0fe42722
No related branches found
No related tags found
1 merge request!1203algo: Enable parallel sorting when libTBB is available.
Pipeline #22856 passed
...@@ -39,6 +39,12 @@ namespace cbm::algo ...@@ -39,6 +39,12 @@ namespace cbm::algo
#endif // WITH_EXECUTION #endif // WITH_EXECUTION
} // namespace detail } // namespace detail
/**
* @brief Wrapper for std::sort
*
* Attempts to use the parallel version of std::sort if available. Falls back to the sequential version otherwise.
* Parallel version currently requires Linux, GCC compiler and libTBB.
*/
template<typename It, typename Compare> template<typename It, typename Compare>
void Sort(It first, It last, Compare comp) void Sort(It first, It last, Compare comp)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment