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

This commit is contained in:
Zach Laine committed 2018-10-02 17:26:50 -05:00
1 parent e4dfe0885f
commit 435cc61af8
2 files changed
+4 -4

No files matched your search

+1 -1
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.