a multiway conditional expression or statement
The first argument is a value that is compared to the values of the following arguments.
The arguments are an alternating sequence of values and functions (statement sequences).
The values are compared to the first argument in the order they appear.
If a value matches the first argument, the corresponding function is called.
If no value matches the first argument, the last function (if any) is called.
std::if | classic if; can be used as a function or a procedure |
std::cond | a multiway conditional expression or statement |