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 static_map::insert_or_apply aka reduce-by-key #384

Closed
wants to merge 3 commits into from

Conversation

sleeepyjack
Copy link
Collaborator

This PR adds a function static_map::insert_or_apply, which either inserts a new key-value pair into the map, or, in case the key already exists, applies a reduction function over the associated value.

This effectively replaces the former cuco::static_reduction_map and thus superseeds #98.

Closes #82

@sleeepyjack sleeepyjack added topic: static_map Issue related to the static_map In Progress Currently a work in progress labels Oct 14, 2023
@sleeepyjack sleeepyjack self-assigned this Oct 14, 2023
@PointKernel
Copy link
Member

Closing this as it's fixed by #515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress Currently a work in progress topic: static_map Issue related to the static_map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants