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

Function main

code/3/3.4.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 else return b;
23}
24int main() {
25 A obj = return_rvalue(false);
26 std::cout << "obj:" << std::endl;
27 std::cout << obj.pointer << std::endl;
28 std::cout << *obj.pointer << std::endl;
29
30 return 0;
31}

Callers

nothing calls this directly

Calls 1

return_rvalueFunction · 0.85

Tested by

no test coverage detected