-
Notifications
You must be signed in to change notification settings - Fork 83
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
add occupied(n)
for unordered set and map
#427
base: master
Are you sure you want to change the base?
add occupied(n)
for unordered set and map
#427
Conversation
@stotko help to review this PR, thanks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #427 +/- ##
==========================================
- Coverage 97.34% 97.19% -0.16%
==========================================
Files 32 32
Lines 2524 2528 +4
==========================================
Hits 2457 2457
- Misses 67 71 +4 ☔ View full report in Codecov by Sentry. |
Thanks for working on this. However, I believe that exposing the While the use case you mentioned is fine, it may suffer from bad performance since the load factor of As mentioned in #423, adding (host-only) overloads with an additional stream argument for the
|
Add
bool occupied(index n)
function for unordered_set and unordered_map. So that we can:It skips the need for getting
device_range
.