s-yata / marisa-trie

MARISA: Matching Algorithm with Recursively Implemented StorAge
Other
515 stars 89 forks source link

Make `Agent` copyable and moveable #38

Open glebm opened 3 years ago

glebm commented 3 years ago

This allows implementing C++ forward iterator interface on top of the Agent more efficiently.

C++ iterators must be copyable, and the only way to copy one previously was to repeat the query until the index.