diff --git a/include/cuco/static_map.cuh b/include/cuco/static_map.cuh index 773a00fd3..2302161c1 100644 --- a/include/cuco/static_map.cuh +++ b/include/cuco/static_map.cuh @@ -121,18 +121,12 @@ class static_map { storage_ref_type, Operators...>; ///< Non-owning container ref type + static_map() = delete; static_map(static_map const&) = delete; static_map& operator=(static_map const&) = delete; - - static_map(static_map&&) = default; ///< Move constructor - - /** - * @brief Replaces the contents of the container with another container. - * - * @return Reference of the current map object - */ - static_map& operator=(static_map&&) = default; - ~static_map() = default; + static_map(static_map&&) = delete; + static_map& operator=(static_map&&) = delete; + ~static_map() = default; /** * @brief Constructs a statically-sized map with the specified initial capacity, sentinel values diff --git a/include/cuco/static_multimap.cuh b/include/cuco/static_multimap.cuh index 08166b503..44de96d63 100644 --- a/include/cuco/static_multimap.cuh +++ b/include/cuco/static_multimap.cuh @@ -117,18 +117,12 @@ class static_multimap { storage_ref_type, Operators...>; ///< Non-owning container ref type + static_multimap() = delete; static_multimap(static_multimap const&) = delete; static_multimap& operator=(static_multimap const&) = delete; - - static_multimap(static_multimap&&) = default; ///< Move constructor - - /** - * @brief Replaces the contents of the container with another container. - * - * @return Reference of the current map object - */ - static_multimap& operator=(static_multimap&&) = default; - ~static_multimap() = default; + static_multimap(static_multimap&&) = delete; + static_multimap& operator=(static_multimap&&) = delete; + ~static_multimap() = default; /** * @brief Constructs a statically-sized map with the specified initial capacity, sentinel values diff --git a/include/cuco/static_multiset.cuh b/include/cuco/static_multiset.cuh index 77d3b16c9..e728eae84 100644 --- a/include/cuco/static_multiset.cuh +++ b/include/cuco/static_multiset.cuh @@ -99,18 +99,12 @@ class static_multiset { storage_ref_type, Operators...>; ///< Non-owning container ref type + static_multiset() = delete; static_multiset(static_multiset const&) = delete; static_multiset& operator=(static_multiset const&) = delete; - - static_multiset(static_multiset&&) = default; ///< Move constructor - - /** - * @brief Replaces the contents of the container with another container. - * - * @return Reference of the current multiset object - */ - static_multiset& operator=(static_multiset&&) = default; - ~static_multiset() = default; + static_multiset(static_multiset&&) = delete; + static_multiset& operator=(static_multiset&&) = delete; + ~static_multiset() = default; /** * @brief Constructs a statically-sized multiset with the specified initial capacity, sentinel diff --git a/include/cuco/static_set.cuh b/include/cuco/static_set.cuh index a5f4145ea..8e72c7904 100644 --- a/include/cuco/static_set.cuh +++ b/include/cuco/static_set.cuh @@ -104,18 +104,12 @@ class static_set { storage_ref_type, Operators...>; ///< Non-owning container ref type + static_set() = delete; static_set(static_set const&) = delete; static_set& operator=(static_set const&) = delete; - - static_set(static_set&&) = default; ///< Move constructor - - /** - * @brief Replaces the contents of the container with another container. - * - * @return Reference of the current set object - */ - static_set& operator=(static_set&&) = default; - ~static_set() = default; + static_set(static_set&&) = delete; + static_set& operator=(static_set&&) = delete; + ~static_set() = default; /** * @brief Constructs a statically-sized set with the specified initial capacity, sentinel values