[ranges] constexpr is_sorted, is_sorted_until and adjacent_find
This change adds constexpr implementations of base::ranges::is_sorted, base::ranges::is_sorted_until and base::ranges::adjacent_find. Since the regular std:: implementations are not constexpr prior to C++20 the algorithms are now implemented manually. Bug: 1071094 Change-Id: Id25b4bde77451c6fcc17f4c07179d68de4af3981 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2494872 Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#820829}
Showing
Please register or sign in to comment