MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / callback

Method callback

include/thundersvm/util/log.h:1605–1611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1603
1604 template <typename T, typename TPtr>
1605 static T* callback(const std::string& id, std::map<std::string, TPtr>* mapT) {
1606 typename std::map<std::string, TPtr>::iterator iter = mapT->find(id);
1607 if (iter != mapT->end()) {
1608 return static_cast<T*>(iter->second.get());
1609 }
1610 return nullptr;
1611 }
1612 };
1613 } // namespace utils
1614 } // namespace base

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected