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

Method installCallback

include/thundersvm/util/log.h:1589–1595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1587 public:
1588 template <typename T, typename TPtr>
1589 static bool installCallback(const std::string& id, std::map<std::string, TPtr>* mapT) {
1590 if (mapT->find(id) == mapT->end()) {
1591 mapT->insert(std::make_pair(id, TPtr(new T())));
1592 return true;
1593 }
1594 return false;
1595 }
1596
1597 template <typename T, typename TPtr>
1598 static void uninstallCallback(const std::string& id, std::map<std::string, TPtr>* mapT) {

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected