3 | | As for "why did I make this change", it's because the previous interface was throwing away useful information - to be precise, the end of the matched range. If you know the length of the pattern that you are searching for,, *and* you have random-access iterators, then recovering the end of the matched range is simple and cheap. However, that's not always the case. Consider a matcher that matches against a regular expression. |
| 3 | As for "why did I make this change", it's because the previous interface was throwing away useful information - to be precise, the end of the matched range. If you know the length of the pattern that you are searching for, and you have random-access iterators, then recovering the end of the matched range is simple and cheap. However, that's not always the case. Consider a matcher that matches against a regular expression. |