QHash::TryEmplaceResult Struct
struct QHash::TryEmplaceResultTryEmplaceResult 类用于表示tryEmplace() 操作的结果。更多内容...
该结构体在 Qt 6.9 中引入。
公共函数
公共变量
详细说明
TryEmplaceResult 类用于QHash 中,用于表示tryEmplace()操作的结果。它包含一个指向新创建项或阻止插入的预存在项的iterator ,以及一个布尔值inserted ,用于表示插入是否成功。
另请参阅 QHash 和QHash::tryEmplace()。
成员变量文档
bool TryEmplaceResult::inserted
如果已经存在一个具有相同键的条目,则该值为false 。
QHash<Key, T>::iterator TryEmplaceResult::iterator
保存指向新插入元素的迭代器,或者指向导致插入失败的元素的迭代器。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.