Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Requires:;;要求:`value_type`is需满足 https://en.cppreference.com/w/cpp/named_req/MoveInsertable[MoveInsertable^]. Returns:;; `true` if an insert took place. Concurrency:;; Blocking on rehashing of `*this`. Notes:;; Invalidates pointers and references to elements if a rehashing is issued. + + A call of the form `insert(x)`, where `x` is equally convertible to both `value_type&&` and `init_type&&`, is not ambiguous and selects the可移动插入^] 要求。返回:若执行了插入则返回 `true`。并发:在 `*this` 的 rehash 操作上阻塞。注意:如果执行了 rehash,则指向元素的指针和引用会失效。+ +形式为 `insert(x)` 的调用(其中 `x` 可同等转换为 `value_type&&` 和 `init_type&&`)不会产生歧义,并且会选择 `init_type`overload.重载。