Add rvalue overload of insert() for flat_map

This commit is contained in:
Christian Mazakas
2022-09-27 10:28:10 -07:00
parent e115634812
commit 3da4b6411c

View File

@ -49,11 +49,19 @@ namespace boost {
size_type size() const noexcept { return table_.size(); }
/// Modifiers
///
std::pair<iterator, bool> insert(value_type const& value)
{
return table_.insert(value);
}
std::pair<iterator, bool> insert(value_type&& value)
{
return table_.insert(std::move(value));
}
size_type count(key_type const& key) const
{
auto pos = table_.find(key);