clear method

void clear()

Resets the registry to its initial empty state. Callers must separately clear any per-nid arrays they maintain.

Implementation

void clear() {
  _keyToNid.clear();
  _nidToKey.clear();
  _freeNids.clear();
  _nextNid = 0;
}