[libc++] Add an early return for __partial_sort of an empty range.
If `__first == __middle`, then `partial_sort` is a no-op; don't bother to iterate all the way from `__middle` to `__end`. Fixes #49431. Differential Revision: https://reviews.llvm.org/D116296
Loading
Please sign in to comment