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

Method unregister

include/thundersvm/util/log.h:1472–1478  ·  view source on GitHub ↗

@brief Unregisters single entry mapped to specified unique key

Source from the content-addressed store, hash-verified

1470
1471/// @brief Unregisters single entry mapped to specified unique key
1472 void unregister(const T_Key& uniqKey) {
1473 T_Ptr* existing = get(uniqKey);
1474 if (existing != nullptr) {
1475 this->list().erase(uniqKey);
1476 base::utils::safeDelete(existing);
1477 }
1478 }
1479
1480/// @brief Gets pointer from repository. If none found, nullptr is returned.
1481 T_Ptr* get(const T_Key& uniqKey) {

Callers

nothing calls this directly

Calls 1

safeDeleteFunction · 0.85

Tested by

no test coverage detected