This is what I would like to do:
{
...
if(condition)
break;
...
}
This works for a loop. I would like something similar for a simple block of code.
Is it possible?
Am I forced to use a "goto"?
I think such an extension of the break
statement would have been a useful addition to C++11...