Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Trie moveable #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Make Trie moveable #39

wants to merge 2 commits into from

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Jun 25, 2021

Adds move constructor and move assignment to Trie, allowing modern C++ code to use it without a pointer indirection.

Based on top of #38

This allows implementing C++ 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.
Adds move constructor and move assignment to `Trie`, allowing modern C++
code to use it without a pointer indirection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant