[libc++][ranges] Avoid using `distance` in `ranges::contains_subrange` (#87155)
Both `std::distance` or `ranges::distance` are inefficient for non-sized ranges. Also, calculating the range using `int` type is seriously problematic. This patch avoids using `distance` and calculation of the length of non-sized ranges. Fixes #86833.
parent
c45861f4
Please register or sign in to comment