trie: implement clone() method (#852)

* Add Clone() for StringMap

* Fix for std::string addition

* trie: broken return key.

* clonetrie: correct handle leakage.

Co-authored-by: Kyle Sanderson <[email protected]>
This commit is contained in:
Headline
2020-07-14 20:11:23 -07:00
committed by GitHub
co-authored by Kyle Sanderson
parent b8ae4e617b
commit 5fa25e70ad
3 changed files with 60 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ enum NodeType
* @brief DEPRECATED. This class scales extremely poorly; insertion scales
* quadratic (O(n^2)) with respect to the number of elements in the table.
* Only use this class if you have less than 200 elements or so. Otherwise,
* use StringHashMap in sm_hashtable.h which scales linearly and has comparable
* use StringHashMap in sm_stringhashmap.h which scales linearly and has comparable
* retrievable performance.
*
* See bug 5878 for more detail.