| 233 | } |
| 234 | |
| 235 | void VariableSet::IterateWhile(function_ref_noexcept<bool(unsigned int, const Variable&) noexcept> func) const noexcept |
| 236 | { |
| 237 | unsigned int num = 0; |
| 238 | for (const LinkedVariable *lv = root; lv != nullptr; lv = lv->next) |
| 239 | { |
| 240 | if (!func(num, lv->v)) |
| 241 | { |
| 242 | break; |
| 243 | } |
| 244 | ++num; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | // End |
no outgoing calls
no test coverage detected