forked from boostorg/unordered
Add emplace_tests
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user