Skip to content

Add trait for is_bitwise_comparable#83

Merged
jrhemstad merged 4 commits intoNVIDIA:devfrom
jrhemstad:relax-type-restrictions
Jun 2, 2021
Merged

Add trait for is_bitwise_comparable#83
jrhemstad merged 4 commits intoNVIDIA:devfrom
jrhemstad:relax-type-restrictions

Conversation

@jrhemstad
Copy link
Copy Markdown
Collaborator

@jrhemstad jrhemstad commented Jun 2, 2021

Recently I changed it so the only supported Key/Value types were ones where has_unique_object_representations_v<T> was true. However, this disallows any floating point types, which is too restrictive for many valid use cases.

Therefore, I added a trait, cuco::is_bitwise_comparable that allows for user-defined specializations to declare that a type T is safe for bitwise comparison.

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.

1 participant