| 994 | } |
| 995 | |
| 996 | Node *GetNode(const KT key) |
| 997 | { |
| 998 | Node *n = FindKey(key); |
| 999 | if (n != NULL) |
| 1000 | { |
| 1001 | return n; |
| 1002 | } |
| 1003 | n = NewKey(key); |
| 1004 | ValueTraits traits; |
| 1005 | traits.Init(n->Pair.Value); |
| 1006 | return n; |
| 1007 | } |
| 1008 | |
| 1009 | /* Perform a bit-wise copy of the node. Used when relocating a node in the table. */ |
| 1010 | void CopyNode(Node *dst, const Node *src) |