Skip to content

Commit

Permalink
Move key equality functor and empty value sentinel to OA impl class (#…
Browse files Browse the repository at this point in the history
…379)

This PR moves the logic for handling the key equality functor and the
`empty_value_sentinel` (for `static_map`) to the OA impl class.

---------

Signed-off-by: Daniel Juenger <[email protected]>
  • Loading branch information
sleeepyjack authored Oct 6, 2023
1 parent b4657fd commit c408fd4
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 266 deletions.
1 change: 1 addition & 0 deletions include/cuco/detail/equal_wrapper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ enum class equal_result : int32_t { UNEQUAL = 0, EMPTY = 1, EQUAL = 2 };
*/
template <typename T, typename Equal>
struct equal_wrapper {
// TODO: Clean up the sentinel handling since it's duplicated in ref and equal wrapper
T empty_sentinel_; ///< Sentinel value
Equal equal_; ///< Custom equality callable

Expand Down
Loading

0 comments on commit c408fd4

Please sign in to comment.