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 Agent copyable and moveable #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Jun 24, 2021

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.

@glebm glebm force-pushed the copyable-agent branch 2 times, most recently from 6758d51 to 6f6ad2a Compare June 24, 2021 08:04
@glebm glebm marked this pull request as draft June 24, 2021 08:05
@glebm glebm marked this pull request as ready for review June 24, 2021 08:15
@glebm glebm force-pushed the copyable-agent branch 4 times, most recently from 1e8fb10 to 573f935 Compare June 24, 2021 08:27
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.
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