Now that we have insights into std:nth_element() and std::partial_sort(), let's see how we can combine them to inspect parts of a range as if the entire range were sorted:
Use cases
Combining algorithms and corresponding partially ordered result
Get C++ High Performance now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.