MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

docs/examples/implicit-conversions.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19int main()
20{
21 X<int> arr[2]{};
22
23 // We use X<const int> instead of X<int> here. This results
24 // in a constructor call to create a X<const int> object as
25 // you can see in the transformation.
26 for(const X<const int>& x : arr) {
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected