MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / main

Function main

code/3/3.6.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26}
27int main() {
28 std::cout << "传递右值:" << std::endl;
29 pass(1);
30
31 std::cout << "传递左值:" << std::endl;
32 int v = 1;
33 pass(v);
34
35 return 0;
36}

Callers

nothing calls this directly

Calls 1

passFunction · 0.85

Tested by

no test coverage detected