cuCollections icon indicating copy to clipboard operation
cuCollections copied to clipboard

[ENHANCEMENT]: Add insert overloads that take `value_type` as input

Open PointKernel opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Firstly proposed by @sleeepyjack in https://github.com/NVIDIA/cuCollections/pull/407#discussion_r1431913449

The current heterogeneous insert feature requires users to pass an explicit pair type when invoking the device insert functions. So the legacy behavior like:

  set_ref.insert({key, payload});

is no longer supported.

Describe the solution you'd like

Similar to STL insert, it would be nice to add an overload of insert taking value_type as input thus the sample code can work as well.

PointKernel avatar Dec 19 '23 23:12 PointKernel