mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-12 21:49:51 +01:00
Add draft of insert(init_type&&) for unordered_flat_map
This commit is contained in:
@@ -216,12 +216,14 @@ namespace boost {
|
||||
|
||||
void clear() noexcept { table_.clear(); }
|
||||
|
||||
std::pair<iterator, bool> insert(value_type const& value)
|
||||
template <class Ty>
|
||||
auto insert(Ty&& value)
|
||||
-> decltype(table_.insert(std::forward<Ty>(value)))
|
||||
{
|
||||
return table_.insert(value);
|
||||
return table_.insert(std::forward<Ty>(value));
|
||||
}
|
||||
|
||||
std::pair<iterator, bool> insert(value_type&& value)
|
||||
std::pair<iterator, bool> insert(init_type&& value)
|
||||
{
|
||||
return table_.insert(std::move(value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user