Proposal: allow new ranges algorithms

69 views
Skip to first unread message

Victor Vianna

unread,
Jan 5, 2026, 4:35:06 PM (6 days ago) Jan 5
to cxx
Hi cxx,

The C++23 change to the styleguide just landed, but ~all features are in the "TBD" pool right now. I would like to move some of them to the "allowed" pool before announcing cpp23 availability to chromium-dev@ (otherwise the announcement is likely to just be ignored).

To begin with, I propose to allow these various new ranges functions in <algorithm>, like std::ranges::contains and std::ranges::starts_with (docs).

-- Victor

Victor Vianna

unread,
Jan 7, 2026, 2:18:51 PM (4 days ago) Jan 7
to cxx, Victor Vianna
Any concerns with this one?

Daniel Cheng

unread,
Jan 7, 2026, 2:22:46 PM (4 days ago) Jan 7
to Victor Vianna, cxx
Seems fine and fairly straightforward to me. Do we have any current //base equivalents that we'd want to migrate?

Daniel

--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/cf49ce7b-9538-450f-855d-a77c1297c77cn%40chromium.org.

Jan Wilken Dörrie

unread,
Jan 8, 2026, 4:18:56 AM (4 days ago) Jan 8
to cxx, Daniel Cheng, cxx, victor...@google.com
+1, we should allow them.


 Do we have any current //base equivalents that we'd want to migrate?

Not that I know, apart from `base::Contains`, obviously.

Kyle Charbonneau

unread,
Jan 8, 2026, 9:59:23 AM (3 days ago) Jan 8
to Jan Wilken Dörrie, cxx, Daniel Cheng, victor...@google.com
sgtm me too since we have a thread for addressing existing base::Contains() usage.

Reply all
Reply to author
Forward
0 new messages