This commit is contained in:
Sergey Zubkov
2019-02-19 15:37:53 -05:00
parent 65aa7232e8
commit 358bef703e

View File

@@ -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.