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

Function main

07.01-captureByCopy0/main.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2// SPDX-License-Identifier: MIT
3
4int main()
5{
6 int c{3};
7
8 auto twice = [=] { return c * 2; };
9
10 return twice();
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected