cpp/language/do

Executes a repeatedly, until the value of  becomes false. The test takes place after each iteration.

Explanation
is always executed at least once, even if always yields false. If it should not execute in this case, a or  loop may be used.

If the execution of the loop needs to be terminated at some point, a can be used as terminating statement.

If the execution of the loop needs to be continued at the end of the loop body, a can be used as shortcut.

Keywords
,