NVIDIA / cuCollections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ENHANCEMENT]: Add `insert_or_assign` for `static_map`

PointKernel opened this issue · comments

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

Depends on #314

Similar to std::unordered_map::insert_or_assign, we should add a new host function static_map::insert_or_assign that either inserts the kay-value pair or modifies the existing key with the given payload.

Describe the solution you'd like

API reference: https://en.cppreference.com/w/cpp/container/unordered_map/insert_or_assign

Describe alternatives you've considered

No response

Additional context

No response