From 04b2e02ddbedfa0840f75cc5c25b942be16648b3 Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Tue, 5 Nov 2024 10:29:44 -0800 Subject: [PATCH] Add multimap size --- .../detail/static_multimap/static_multimap.inl | 15 +++++++++++++++ include/cuco/static_multimap.cuh | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/include/cuco/detail/static_multimap/static_multimap.inl b/include/cuco/detail/static_multimap/static_multimap.inl index 2df33b50b..9649df3e5 100644 --- a/include/cuco/detail/static_multimap/static_multimap.inl +++ b/include/cuco/detail/static_multimap/static_multimap.inl @@ -456,6 +456,21 @@ void static_multimapimpl_->rehash_async(extent, *this, stream); } +template +static_multimap::size_type +static_multimap::size( + cuda::stream_ref stream) const +{ + return impl_->size(stream); +} + template