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

Function main

code/5/5.3.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20};
21int main() {
22 std::shared_ptr<A> a = std::make_shared<A>();
23 std::shared_ptr<B> b = std::make_shared<B>();
24 a->pointer = b;
25 b->pointer = a;
26
27 return 0;
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected