MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / update_shared_ptr

Function update_shared_ptr

src/test_module.cpp:114–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void update_shared_ptr(std::shared_ptr<TestBaseType> &ptr)
115{
116 ptr = std::make_shared<TestDerivedType>();
117}
118
119void nullify_shared_ptr(std::shared_ptr<TestBaseType> &ptr)
120{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected