Skip to content

Commit

Permalink
Fix insert_and_find value type
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Oct 10, 2023
1 parent 8eab8c1 commit 63e1fae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/cuco/detail/static_map/static_map_ref.inl
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,15 @@ class operator_impl<
* element that prevented the insertion) and a `bool` denoting whether the insertion took place or
* not.
*
* @tparam Value Input type which is implicitly convertible to 'value_type'
*
* @param value The element to insert
*
* @return a pair consisting of an iterator to the element and a bool indicating whether the
* insertion is successful or not.
*/
__device__ thrust::pair<iterator, bool> insert_and_find(value_type const& value) noexcept
template <typename Value>
__device__ thrust::pair<iterator, bool> insert_and_find(Value const& value) noexcept
{
ref_type& ref_ = static_cast<ref_type&>(*this);
return ref_.impl_.insert_and_find(value);
Expand Down

0 comments on commit 63e1fae

Please sign in to comment.