En esta página

QHash::TryEmplaceResult Struct

struct QHash::TryEmplaceResult

La clase TryEmplaceResult se utiliza para representar el resultado de una operación tryEmplace(). Más...

Esta estructura se introdujo en Qt 6.9.

Variables Públicas

bool inserted
QHash<Key, T>::iterator iterator

Descripción detallada

La clase TryEmplaceResult se utiliza en QHash para representar el resultado de una operación tryEmplace(). Contiene un iterator al elemento recién creado, o al elemento preexistente que impidió la inserción, y un booleano, inserted, que denota si la inserción tuvo lugar.

Véase también QHash y QHash::tryEmplace().

Documentación de variables miembro

bool TryEmplaceResult::inserted

Este valor es false si ya existía una entrada con la misma clave.

QHash<Key, T>::iterator TryEmplaceResult::iterator

Mantiene el iterador al elemento recién insertado, o al elemento que impidió la inserción.

© 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.