Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
If如果 `a == other.get_allocator()`, the elements of `other` are transferred directly to the new container; otherwise, elements are moved-constructed from those of `other`. The hash function and predicate are moved-constructed from `other`, and the allocator is copy-constructed from `a`. If statistics are xref:unordered_flat_set_boost_unordered_enable_stats[enabled], transfers the internal statistical information from `other` iff,则 `other` 的元素会直接转移给新容器;否则,将根据 `other` 中的元素进行移动构造。哈希函数和谓词从 `other` 进行移动构造,而分配器则从 `a` 进行复制构造。如果启用了统计信息(xref:unordered_flat_set_boost_unordered_enable_stats[enabled]),则仅当 `a == other.get_allocator()`, and always calls时才从 `other` 转移内部统计信息,并且总是调用 `other.reset_stats()`.。