Executes a statement repeatedly, until the value of condition becomes false. The test takes place after each iteration.
|attr(C++11)||-||any number of attributes|
|expression||-||any expression which is contextually convertible to bool. This expression is evaluated after each iteration, and if it yields false, the loop is exited.|
|statement||-||any statement, typically a compound statement, which is the body of the loop|
If the execution of the loop needs to be terminated at some point, break statement can be used as terminating statement.
If the execution of the loop needs to be continued at the end of the loop body, continue statement can be used as shortcut.