src/dict/trie.cpp
void Trie::clear() {
  for (auto node : nodes_) {
    delete node;
  }
  nodes_.clear();
  root_back_freelist_.clear();
  num_edges_ = 0;
  new_dawg_node(); // Need to allocate node 0.
}
// Reset the Trie to empty.
Reset the Trie to empty.
Reset the Trie to empty .
void Trie::clear() {
  for (auto node : nodes_) {
    delete node;
  }
  nodes_.clear();
  root_back_freelist_.clear();
  num_edges_ = 0;
  new_dawg_node(); 
}
void Trie :: clear ( ) { for ( auto node : nodes_ ) { delete node ; } nodes_ . clear ( ) ; root_back_freelist_ . clear ( ) ; num_edges_ = 0 ; new_dawg_node ( ) ; }
Reset the Trie to empty.
Reset the Trie to empty .
// Need to allocate node 0.