Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Inserts `obj` in the table if and only if there is no element in the table with an equivalent key, and then invokes `f1` with a const reference to the newly created element. Otherwise, invokes `f2` with a const reference to the equivalent element.当且仅当哈希表中不存在键等价的元素时,将 `obj` 插入表中,随后以新建元素的常量引用为参数调用函数 `f1`;否则,以该等价元素的常量引用为参数调用函数 `f2`。要求:`value_type` 支持拷贝插入。
返回值:若成功插入元素则返回 `true`。
并发特性:会阻塞当前对象的重哈希操作。