Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Key
:778Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Requires:;;要求:`value_type`is constructible from `args`. Returns:;; The `bool` component of the return type is `true` if an insert took place. + + If an insert took place, then the iterator points to the newly inserted element. Otherwise, it points to the element with equivalent key. Throws:;; If an exception is thrown by an operation other than a call to `hasher` the function has no effect. Notes:;; Can invalidate iterators, pointers and references, but only if the insert causes the load to be greater than the maximum load. + + If `args...` is of the form `k,v`, it delays constructing the whole object until it is certain that an element should be inserted, using only the `k` argument to check.可从 `args` 构造。返回:若执行了插入,则返回类型中的 `bool` 分量为 `true`。+ +若执行了插入,则迭代器指向新插入的元素;否则指向等价的元素。抛出:若调用 `hasher` 以外的操作抛出异常,则函数无效果。注意:可能使迭代器、指针和引用失效,但仅当插入导致负载大于最大负载时才会发生。+ +若 `args...` 的形式为 `k,v`,则仅在确定应插入元素时才构造整个对象,检查时仅使用 `k` 参数。