Hi cxx,
- 66% can be replaced by a contains() method call
- 32% can be replaced by std::ranges::contains()
- 2% (122 uses) can be replaced by find() calls. These could also be contains() if we introduced that method in the corresponding containers.
So I'd like to propose 2 things:
a) That we allow use of std::ranges::contains() when C++23 is allowed (which is pending a styleguide CL and an email at this point)
b) That we migrate base::Contains() using the tool above.
-- Victor