Merge pull request #3195 from Inujel:fix-3194
PiperOrigin-RevId: 398271948
This commit is contained in:
@@ -273,7 +273,7 @@ inline int CountIf(const Container& c, Predicate predicate) {
|
||||
// Implemented as an explicit loop since std::count_if() in libCstd on
|
||||
// Solaris has a non-standard signature.
|
||||
int count = 0;
|
||||
for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) {
|
||||
for (auto it = c.begin(); it != c.end(); ++it) {
|
||||
if (predicate(*it))
|
||||
++count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user