invoke a statement sequence for a specific number of times
None
The statement sequence body is invoked exactly n times.
n must be a numeric value. If it is not greater than 0 than body will not be called at all. n might also be a negative number (in which case body will not be called).
To start the next iteration of the loop a tail call to the next-function has to be performed.
To exit from the loop a tail call to the break-function has to be performed or one or more results have to be returned.
std::loop | a simple "loop" |
std::while | a "while" loop |
std::while_not | a "while" loop |
std::from_to | a loop iterating over a sequence of values |
std::from_to_by | a loop iterating over a sequence of values |