Add emplace_tests

This commit is contained in:
Christian Mazakas
2022-10-05 13:31:10 -07:00
parent a3c6235f3a
commit f3803fc071
4 changed files with 128 additions and 2 deletions

View File

@@ -239,6 +239,12 @@ namespace boost {
return table_.emplace(std::forward<Args>(args)...);
}
template <class... Args>
iterator emplace_hint(const_iterator, Args&&... args)
{
return this->emplace(std::forward<Args>(args)...).first;
}
template <class... Args>
std::pair<iterator, bool> try_emplace(key_type const& key, Args&&... args)
{

View File

@@ -200,6 +200,12 @@ namespace boost {
return table_.emplace(std::forward<Args>(args)...);
}
template <class... Args>
iterator emplace_hint(const_iterator, Args&&... args)
{
return this->emplace(std::forward<Args>(args)...).first;
}
void erase(const_iterator pos) { return table_.erase(pos); }
iterator erase(const_iterator first, const_iterator last)
{