Add initial draft of erase()

This commit is contained in:
Christian Mazakas
2023-03-29 15:00:54 -07:00
parent 0c90585511
commit 5e316ebc88
3 changed files with 94 additions and 1 deletions
@@ -123,6 +123,11 @@ namespace boost {
size_type size() const noexcept { return table_.size(); }
BOOST_ATTRIBUTE_NODISCARD bool empty() const noexcept
{
return size() == 0;
}
/// Modifiers
///
@@ -209,6 +214,8 @@ namespace boost {
this->insert_or_visit(ilist.begin(), ilist.end(), std::move(f));
}
size_type erase(key_type const& k) { return table_.erase(k); }
/// Hash Policy
///
void rehash(size_type n) { table_.rehash(n); }