Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
If若`nh`is empty, does nothing. Otherwise, inserts the associated element in the table if and only if there is no element in the table with a key equivalent to `nh.key()`, and then invokes `f1` with a non-const reference to the newly inserted element. Otherwise, invokes `f2` with a reference to the equivalent element; such reference is const iff为空,则不执行任何操作。否则,当且仅当哈希表中不存在与`nh.key()`等价的键时,将关联元素插入表中,随后以非常量引用指向新插入的元素并调用`f1`。若存在等价键,则调用`f2`并传入等价元素的引用;当且仅当使用`insert_or_cvisit`is used.时,该引用为常量引用。