mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
closes #1337
This commit is contained in:
@@ -13548,7 +13548,7 @@ However, `lower_bound` still doesn't return enough information for all uses, so
|
||||
`equal_range` returns a `pair` of iterators specifying the first and one beyond last match.
|
||||
|
||||
auto r = equal_range(begin(c), end(c), 7);
|
||||
for (auto p = r.first(); p != r.second(), ++p)
|
||||
for (auto p = r.first; p != r.second; ++p)
|
||||
cout << *p << '\n';
|
||||
|
||||
Obviously, these three interfaces are implemented by the same basic code.
|
||||
|
||||
Reference in New Issue
Block a user