From 358bef703e53c24dba5338d20ddf4b0df76e901b Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Tue, 19 Feb 2019 15:37:53 -0500 Subject: [PATCH] closes #1337 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 37406ba..047ce07 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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.