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

HashMap.byKey, HashMap.byValue and HashMap.byPair should be callable with a const object #11

Open
a-ludi opened this issue Mar 22, 2021 · 2 comments

Comments

@a-ludi
Copy link

a-ludi commented Mar 22, 2021

Hi, the iterator methods of HashMap should be callable with a const object. As far as I can tell, it would suffice to add const keyword to the signature.

@rr0gi
Copy link

rr0gi commented Feb 8, 2022

🙏

@rr0gi
Copy link

rr0gi commented Feb 8, 2022

afaics simply adding const doesn't work, I figure it is because of refcounted :

        // Buckets form contigous array. We keep this array refcounted, so that
        // we can store reference to it from byPair, byKey, ... even if hashtable itself cleared or
        // destroyed.

but const versions would be appreciated nonetheless

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

No branches or pull requests

2 participants