Add prototype of move assignment

This commit is contained in:
Christian Mazakas
2023-04-26 12:54:04 -07:00
parent d7acb7e8b8
commit 212c6a1e4d
3 changed files with 224 additions and 2 deletions
@@ -258,6 +258,15 @@ namespace boost {
return *this;
}
concurrent_flat_map& operator=(concurrent_flat_map&& rhs)
noexcept(std::allocator_traits<Allocator>::is_always_equal::value ||
std::allocator_traits<
Allocator>::propagate_on_container_move_assignment::value)
{
table_ = std::move(rhs.table_);
return *this;
}
/// Capacity
///
+2 -2
View File
@@ -1381,8 +1381,8 @@ public:
reserve(0);
move_assign_if<pocma>(al(),x.al());
swap(arrays,x.arrays);
swap(ml,x.ml);
swap(size_,x.size_);
swap_size_impl(ml,x.ml);
swap_size_impl(size_,x.size_);
}
else{
/* noshrink: favor memory reuse over tightness */