| 5 | #include <vector> |
| 6 | |
| 7 | int main() |
| 8 | { |
| 9 | std::vector<int> v{2, 3, 4, 5, 6}; |
| 10 | |
| 11 | { // #A The scope ties idx and the loop together |
| 12 | size_t idx{0}; |
| 13 | for(const auto& e : v) { printf("[%zd] %d\n", idx++, e); } |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected