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

Replace priority_queue::push with emplace. #472

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

ttsugriy
Copy link
Contributor

It's more concise and more importantly forwards args so that the pair can be constructed in-place, instead of being created at the call-site and moved into push. It's not a big deal as both values are primitive types, but still...

@yurymalkov
Copy link
Member

Thanks!

@yurymalkov yurymalkov merged commit b977d25 into nmslib:develop Jun 19, 2023
@ttsugriy ttsugriy deleted the emplace branch June 19, 2023 22:56
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.

None yet

2 participants