Passthrough is_avalanching from std::hash by Auburn · Pull Request #114 · martinus/unordered_dense · GitHub
Skip to content

Passthrough is_avalanching from std::hash - #114

Merged
martinus merged 1 commit into
martinus:mainfrom
Auburn:std_hash_avalanching
Oct 5, 2024
Merged

Passthrough is_avalanching from std::hash#114
martinus merged 1 commit into
martinus:mainfrom
Auburn:std_hash_avalanching

Conversation

@Auburn

@Auburn Auburn commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

If a std::hash specialisation has using is_avalanching = void; pass this through to unordered_dense::hash this avoids duplicating a hash function for a custom type if you want it to work for generic stl containers and unordered_dense with a correct avalanche tag.

@martinus
martinus merged commit e445b0d into martinus:main Oct 5, 2024
@martinus

martinus commented Oct 5, 2024

Copy link
Copy Markdown
Owner

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