Unverified Commit 37f90363 authored by Hongyu Ouyang's avatar Hongyu Ouyang Committed by GitHub
Browse files

[libc++] Make drop_view::begin constant time (#72883) (#72929)

As pointed out in #72883, the implementation only needs to return the
value of ranges::next and does not need to obtain the value through
ranges::advance, which causes it to have O(n) complexity in the case
of random-access-sized but non-common range.

Fixes #72883
parent 516cc98a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment