Fix sloppy find_not() and find_*backward() code examples.

This commit is contained in:
Zach Laine
2018-10-02 17:22:49 -05:00
parent e4dfe0885f
commit 435cc61af8
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ the use of `std::find()`:
auto rfirst = std::make_reverse_iterator(last);
auto rlast = std::make_reverse_iterator(first);
auto it = std::find(rfirst, rlast);
auto it = std::find(rfirst, rlast, x);
// Use it here...
That seems nicer in that there is no raw loop, but it has two major drawbacks.