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

Function main

docs/examples/generic-lambda.cpp:1–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1int main()
2{
3 // Generic lambdas have a method template call operator.
4 auto x = [](auto x) { return x * x; };
5
6 x(2); // int
7 x(3.0); // double
8}

Callers

nothing calls this directly

Calls 1

xFunction · 0.85

Tested by

no test coverage detected