mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
P.1: Fixed incorrect use of std::find.
This commit is contained in:
@@ -387,7 +387,7 @@ A much clearer expression of intent would be:
|
||||
string val;
|
||||
cin >> val;
|
||||
// ...
|
||||
auto p = find(v, val); // better
|
||||
auto p = find(begin(v), end(v), val); // better
|
||||
// ...
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user