Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
unordered_node_set& operator=(unordered_node_set&
&& other) noexcept((boost::allocator_traits<Aallocator>::is_always_equal::value || boost::allocator_traits<Aallocator>::propagate_on_container_move_assignment::value) &&& std::is_same<pointer, value_type*="">::value);``` The move assignment operator. Destroys previously existing elements, swaps the hash function and predicate from `other`, and move-assigns the allocator from `other` if```
移动赋值运算符。销毁之前存在的元素,交换来自 `other` 的哈希函数和谓词,并且如果 `Alloc::propagate_on_container_move_assignment`
exists and存在且 `Alloc::propagate_on_container_move_assignment::value`is为 `true`. If at this point the allocator is equal to `other.get_allocator()`, the internal bucket array of `other` is transferred directly to the new container; otherwise, inserts move-constructed copies of the elements of `other`. If statistics are xref:unordered_node_set_boost_unordered_enable_stats[enabled], transfers the internal statistical information from `other` iff the final allocator is equal to `other.get_allocator()`, and always calls `other.reset_stats()`.,则从 `other` 移动赋值分配器。如果此时分配器与 `other.get_allocator()` 相等,则 `other` 的内部桶数组直接转移给当前容器;否则,插入从 `other` 元素移动构造而来的副本。如果启用了统计信息(详见 xref:unordered_node_set_boost_unordered_enable_stats[`BOOST_UNORDERED_ENABLE_STATS`]),则当最终分配器与 `other.get_allocator()` 相等时,从 `other` 转移内部的统计信息,并且始终会调用 `other.reset_stats()`。</pointer,></allocator></allocator>