Sorry for the noise. Just figured std::find_if() should do it.
Hi Peter
Although you've quickly figured out that the functionality you need is already there, I do agree that the use of find_if() to express until() semantics is not immediately
obvious. I think it is proabably a little "Aha" moment for many of us. In a similar vein I often find myself writing this functionality