MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / RefCountClass

Method RefCountClass

tests/gtest_blackboard.cpp:182–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180{
181public:
182 RefCountClass(std::shared_ptr<int> value) : sptr_(std::move(value))
183 {
184 std::cout << "Constructor: ref_count " << sptr_.use_count() << std::endl;
185 }
186
187 RefCountClass(const RefCountClass& from) : sptr_(from.sptr_)
188 {

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected