mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
P.1: Fixed incorrect use of std::find
.
This commit is contained in:
parent
3b29134985
commit
a26d6c98d5
|
@ -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
|
||||
// ...
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user