mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +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.
|
`equal_range` returns a `pair` of iterators specifying the first and one beyond last match.
|
||||||
|
|
||||||
auto r = equal_range(begin(c), end(c), 7);
|
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';
|
cout << *p << '\n';
|
||||||
|
|
||||||
Obviously, these three interfaces are implemented by the same basic code.
|
Obviously, these three interfaces are implemented by the same basic code.
|
||||||
|
|||||||
Reference in New Issue
Block a user