[libcxx-commits] [libcxx] [libc++] optimization on ranges::drop_view::begin (#72883) (PR #72929)

Hongyu Ouyang via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 20 19:55:13 PST 2023


casavaca wrote:

Upon further investigation, I found that the library correctly implement O(1) behavior. The call sequence is
```
ranges::next --> ranges::advance (with sentinel) --> ranges::advance (without sentinel) --> random_access_iterator constexpr branch
```
So, the original behavior is correct, and I'm closing this pull request.

https://github.com/llvm/llvm-project/pull/72929


More information about the libcxx-commits mailing list