Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
As for pointers and references, they are never invalidated for node-based containers (对于基于节点的容器( `boost::unordered_[multi]++_[++multi++]++set`,、 `boost::unordered_[multi]++_[++multi++]++map`,、 `boost::unordered_node_++_++node++_++set`,、 `boost::unordered_node_map`), but they will be when rehashing occurs for++_++node++_++map` ),其指针和引用永远不会失效。但对于 `boost::unordered_flat_++_++flat++_++set`and和 `boost::unordered_flat_map`: this is because these containers store elements directly into their holding buckets, so when allocating a new bucket array the elements must be transferred by means of move construction.++_++flat++_++map` ,在发生重哈希时指针和引用将会失效:这是因为这些容器将元素直接存储在桶中,当分配新的桶数组时,必须通过移动构造来转移元素。