[libcxx-commits] [PATCH] D128744: [libc++][ranges] Implement `ranges::partial_sort`.

Hui via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 7 23:41:38 PDT 2022


huixie90 added inline comments.


================
Comment at: libcxx/include/__algorithm/iterator_operations.h:82
+  static _Iter next(const _Iter& __first, const _Iter& __last) {
+    return std::next(__first, std::distance(__first, __last));
+  }
----------------
is it just `return __last`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128744/new/

https://reviews.llvm.org/D128744



More information about the libcxx-commits mailing list