|
|
@@ -85,7 +85,7 @@ public:
|
|
|
}
|
|
|
|
|
|
[[nodiscard]] constexpr pointer operator->() const noexcept {
|
|
|
- return std::addressof(it->second);
|
|
|
+ return std::addressof(operator[](0));
|
|
|
}
|
|
|
|
|
|
[[nodiscard]] constexpr reference operator*() const noexcept {
|
|
|
@@ -371,7 +371,7 @@ public:
|
|
|
threshold{other.threshold} {}
|
|
|
|
|
|
/*! @brief Default move constructor. */
|
|
|
- dense_set(dense_set &&) noexcept(std::is_nothrow_move_constructible_v<compressed_pair<sparse_container_type, hasher>> &&std::is_nothrow_move_constructible_v<compressed_pair<packed_container_type, key_equal>>) = default;
|
|
|
+ dense_set(dense_set &&) noexcept(std::is_nothrow_move_constructible_v<compressed_pair<sparse_container_type, hasher>> && std::is_nothrow_move_constructible_v<compressed_pair<packed_container_type, key_equal>>) = default;
|
|
|
|
|
|
/**
|
|
|
* @brief Allocator-extended move constructor.
|
|
|
@@ -393,7 +393,7 @@ public:
|
|
|
* @brief Default move assignment operator.
|
|
|
* @return This container.
|
|
|
*/
|
|
|
- dense_set &operator=(dense_set &&) noexcept(std::is_nothrow_move_assignable_v<compressed_pair<sparse_container_type, hasher>> &&std::is_nothrow_move_assignable_v<compressed_pair<packed_container_type, key_equal>>) = default;
|
|
|
+ dense_set &operator=(dense_set &&) noexcept(std::is_nothrow_move_assignable_v<compressed_pair<sparse_container_type, hasher>> && std::is_nothrow_move_assignable_v<compressed_pair<packed_container_type, key_equal>>) = default;
|
|
|
|
|
|
/**
|
|
|
* @brief Returns the associated allocator.
|