5,337
edits
(→Usage) |
|||
Line 301: | Line 301: | ||
See [https://en.cppreference.com/w/cpp/algorithm/execution_policy_tag_t execution_policy_tag].<br> | See [https://en.cppreference.com/w/cpp/algorithm/execution_policy_tag_t execution_policy_tag].<br> | ||
[https://devblogs.microsoft.com/cppblog/using-c17-parallel-algorithms-for-better-performance/ C++17 Parallel Algorithms blog].<br> | [https://devblogs.microsoft.com/cppblog/using-c17-parallel-algorithms-for-better-performance/ C++17 Parallel Algorithms blog].<br> | ||
; | ;Parallel Sorting Example | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
std::sort(std::execution::par_unseq, sorted.begin(), sorted.end()); | std::sort(std::execution::par_unseq, sorted.begin(), sorted.end()); |