forked from boostorg/unordered
Add initial draft of erase()
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user