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

Function f

tests/StructuredBindingsHandler3Test.cpp:18–21  ·  view source on GitHub ↗

expected-note {{temporary}}

Source from the content-addressed store, hash-verified

16 // This creates and lifetime-extends a temporary to hold the result of each get() call.
17 auto [a, b, c] = q; // expected-note {{temporary}}
18 constexpr bool f() {
19 auto [a, b, c] = q;
20 return a == 0 && b == 1 && c == 4;
21 }
22
23 constexpr int g() {
24 int *p = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected