HomeManualTopicsTypesSymbols

std::while

a "while" loop

Parameters

condition
the condition to check for each "iteration"
body
the function to execute for each "iteration"
finally (default: pass)
the function to execute after the last "iteration"

Results

None

Description

This is just a simply layer around std::loop:

Example

$while: (condition body finally) loop: if condition() body finally

Topic

Loops

See also

std::while_not a "while" loop
std::loop a simple "loop"
std::repeat invoke a statement sequence for a specific number of times
std::from_to a loop iterating over a sequence of values
std::from_to_by a loop iterating over a sequence of values