forked from boostorg/unordered
Add prototype of move assignment
This commit is contained in:
@@ -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
|
||||
///
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user