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

Add contains() method to etl::unordered_map and etl::unordered_set #990

Conversation

adejewski
Copy link

@adejewski adejewski commented Dec 7, 2024

Hi,

I've noticed we are missing contains method in etl::unordered_map and etl::unordered_set, this PR fixes that. What is more, I think we are missing transparent comparators in both of those classes, I can look into that later if you want.

@jwellbelove jwellbelove changed the base branch from master to pull-request/#990-Add-contains-method-to-etl-unordered_map-and-etl-unordered_set December 14, 2024 20:14
@jwellbelove
Copy link
Contributor

Are you able to add the same changes to etl::unordered_multimap and etl::unordered_multiset?

@jwellbelove
Copy link
Contributor

I am already working on transparent comparitors for the unordered containers.

…ultimap

Use predefined variables in UT

Move contains() method to correct place in etl::unordered_set
@adejewski
Copy link
Author

Added contains() method to other structures also fixed the parameter type and used the same as find() method uses. I think now it is correct.

@adejewski adejewski force-pushed the add-contains-to-unordered-map-and-unordered-set branch from fca5100 to 29de7b2 Compare December 15, 2024 14:25
@jwellbelove jwellbelove merged commit 602261c into ETLCPP:pull-request/#990-Add-contains-method-to-etl-unordered_map-and-etl-unordered_set Dec 19, 2024
63 checks passed
jwellbelove added a commit that referenced this pull request Dec 19, 2024
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.

2 participants