FYI: you can also write this line like `for (auto* node : nodes)`