Function unregister

Synopsis

#include <src/easylogging++.h>

void unregister(const T_Key &uniqKey)

Description

Unregisters single entry mapped to specified unique key.

Source

Lines 1421-1427 in src/easylogging++.h.

void unregister(const T_Key& uniqKey) {
  T_Ptr* existing = get(uniqKey);
  if (existing != nullptr) {
    this->list().erase(uniqKey);
    base::utils::safeDelete(existing);
  }
}





Add Discussion

Log in to comment