Python has an interesting for statement which lets you specify an else clause.
for
else
In a construct like this one:
for i in foo: if
Yes you can achieve the same effect by:
auto it = std::begin(foo); for (; it != std::end(foo); ++it) if(bar(*it)) break; if(it == std::end(foo)) baz();