| 1 | template <class T> |
| 2 | struct trie { |
| 3 | struct node { |
| 4 | map<T, node*> children; |
| 5 | int prefixes, words; |
| 6 | node() { prefixes = words = 0; } }; |
| 7 | node* root; |
| 8 | trie() : root(new node()) { } |
| 9 | template <class I> |
nothing calls this directly
no outgoing calls
no test coverage detected