-
Notifications
You must be signed in to change notification settings - Fork 52
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
[slot_map] Can you get a key using an iterator? #141
Comments
OK I believe that is provided by |
This, like #131, sounds like a legitimate design issue. @Masstronaut, are you still interested in @p-groarke: If the functionality you think-you-need is there-but-private, then this issue should still be open, right? Either we should make the functionality public, or we should explain why you don't really need it, or we should explain why if you do need it you shouldn't be using My kneejerk reaction is that we should make it public, which means bikeshedding the name/API. Like,
|
@Quuxplusone Fair point, until we get an answer from the author and windows CI, my hands are a little tied. I have many features I'd like to add. I'm happy to send a PR for this one if the original author is on board / doesn't have objections. |
@p-groarke: If you have "many features" you'd like to add, I'd recommend forking the repo, adding all the features in a branch, and then submitting the whole thing as a big patch so we can see how all the new things work together. Bugfixes = incremental, design work = holistic. :) (#135 is certainly related, if we're doing design work.) FWIW, I haven't seen any comments on this repo from @Masstronaut (Allan Deutsch) for a long time. I myself am the original author of this repo's "slot_map.h", which I did just by slavishly following Allan's P0661R0. Allan has his own I see there is also https://github.com/twiggler/slotmap . I don't know anything about it except that it has a lot of heavy dependencies: |
@Quuxplusone Sounds good to me. Will continue to gain some experience with the container in the meantime. I personally really like the name you proposed |
I'm trying to find the keys of stored objects that match a given predicate. I can't see any api to get a key from an iterator, but I may be missing something.
Is it possible to get a key using an iterator in
slot_map
?The text was updated successfully, but these errors were encountered: