MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / main

Function main

11.03-rangeBaseForWithInit2/main.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <vector>
6
7int main()
8{
9 std::vector<int> v{2, 3, 4, 5, 6};
10
11 for(size_t idx{0}; const auto& e : v) {
12 printf("[%zd] %d\n", idx++, e);
13 }
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected