Skip to content

Commit

Permalink
Fix noexcept use in static_multiset
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Jun 19, 2024
1 parent 626ea5f commit dc48820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/cuco/detail/static_multiset/static_multiset.inl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ template <class Key,
class Allocator,
class Storage>
void static_multiset<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::clear(
cuda_stream_ref stream) noexcept
cuda_stream_ref stream)
{
impl_->clear(stream);
}
Expand Down Expand Up @@ -183,7 +183,7 @@ template <class Key,
class Storage>
static_multiset<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::size_type
static_multiset<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::size(
cuda_stream_ref stream) const noexcept
cuda_stream_ref stream) const
{
return impl_->size(stream);
}
Expand Down
4 changes: 2 additions & 2 deletions include/cuco/static_multiset.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class static_multiset {
*
* @param stream CUDA stream this operation is executed in
*/
void clear(cuda_stream_ref stream = {}) noexcept;
void clear(cuda_stream_ref stream = {});

/**
* @brief Asynchronously erases all elements from the container. After this call, `size()` returns
Expand Down Expand Up @@ -339,7 +339,7 @@ class static_multiset {
* @param stream CUDA stream used to get the number of inserted elements
* @return The number of elements in the container
*/
[[nodiscard]] size_type size(cuda_stream_ref stream = {}) const noexcept;
[[nodiscard]] size_type size(cuda_stream_ref stream = {}) const;

/**
* @brief Gets the maximum number of elements the multiset can hold.
Expand Down

0 comments on commit dc48820

Please sign in to comment.