From 115656e2b4a179660b2ff0e5f17c2ce8dba2decb Mon Sep 17 00:00:00 2001 From: Srinivas Yadav <43375352+srinivasyadav18@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:00:30 -0400 Subject: [PATCH] Expose `storage_ref` and `probing_scheme` in all container refs (#572) This PR exposes `storage_ref` and `probing_scheme` in all container refs. --------- Co-authored-by: Yunsong Wang --- .../cuco/detail/static_map/static_map_ref.inl | 28 +++++++++++++++++++ .../static_multimap/static_multimap_ref.inl | 28 +++++++++++++++++++ .../static_multiset/static_multiset_ref.inl | 26 +++++++++++++++++ .../cuco/detail/static_set/static_set_ref.inl | 26 +++++++++++++++++ include/cuco/static_map_ref.cuh | 14 ++++++++++ include/cuco/static_multimap_ref.cuh | 14 ++++++++++ include/cuco/static_multiset_ref.cuh | 14 ++++++++++ include/cuco/static_set_ref.cuh | 14 ++++++++++ 8 files changed, 164 insertions(+) diff --git a/include/cuco/detail/static_map/static_map_ref.inl b/include/cuco/detail/static_map/static_map_ref.inl index 39ef375bc..b38562027 100644 --- a/include/cuco/detail/static_map/static_map_ref.inl +++ b/include/cuco/detail/static_map/static_map_ref.inl @@ -178,6 +178,34 @@ static_map_ref return impl_.capacity(); } +template +__host__ __device__ constexpr auto +static_map_ref::storage_ref() + const noexcept +{ + return this->impl_.storage_ref(); +} + +template +__host__ __device__ constexpr auto +static_map_ref::probing_scheme() + const noexcept +{ + return this->impl_.probing_scheme(); +} + template +__host__ __device__ constexpr auto +static_multimap_ref::storage_ref() + const noexcept +{ + return this->impl_.storage_ref(); +} + +template +__host__ __device__ constexpr auto +static_multimap_ref:: + probing_scheme() const noexcept +{ + return this->impl_.probing_scheme(); +} + template +__host__ __device__ constexpr auto +static_multiset_ref::storage_ref() + const noexcept +{ + return this->impl_.storage_ref(); +} + +template +__host__ __device__ constexpr auto +static_multiset_ref::probing_scheme() + const noexcept +{ + return this->impl_.probing_scheme(); +} + template ::c return impl_.capacity(); } +template +__host__ __device__ constexpr auto +static_set_ref::storage_ref() + const noexcept +{ + return this->impl_.storage_ref(); +} + +template +__host__ __device__ constexpr auto +static_set_ref::probing_scheme() + const noexcept +{ + return this->impl_.probing_scheme(); +} + template