|
@@ -122,7 +122,7 @@ public:
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] constexpr reference operator*() const noexcept {
|
|
[[nodiscard]] constexpr reference operator*() const noexcept {
|
|
|
- return {it->element.first, it->element.second};
|
|
|
|
|
|
|
+ return operator[](0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template<typename Lhs, typename Rhs>
|
|
template<typename Lhs, typename Rhs>
|
|
@@ -423,7 +423,7 @@ public:
|
|
|
threshold{other.threshold} {}
|
|
threshold{other.threshold} {}
|
|
|
|
|
|
|
|
/*! @brief Default move constructor. */
|
|
/*! @brief Default move constructor. */
|
|
|
- dense_map(dense_map &&) 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_map(dense_map &&) 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.
|
|
* @brief Allocator-extended move constructor.
|
|
@@ -445,7 +445,7 @@ public:
|
|
|
* @brief Default move assignment operator.
|
|
* @brief Default move assignment operator.
|
|
|
* @return This container.
|
|
* @return This container.
|
|
|
*/
|
|
*/
|
|
|
- dense_map &operator=(dense_map &&) 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_map &operator=(dense_map &&) 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.
|
|
* @brief Returns the associated allocator.
|