[libcxx-commits] [libcxx] [libc++] Improve the performance of std::make_heap a bit (PR #154092)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 9 07:15:44 PDT 2025
philnik777 wrote:
@mstorsjo That looks to me like an issue with the iterator. If its `iterator_category` derives from `random_access_iterator` it has to provide a subscript operator according to https://eel.is/c++draft/iterator.requirements#tab:randomaccessiterator. Given that `make_heap` requires a random access iterator that part is not even optional.
https://github.com/llvm/llvm-project/pull/154092
More information about the libcxx-commits
mailing list