QHash::TryEmplaceResult Struct
struct QHash::TryEmplaceResultLa classe `TryEmplaceResult` viene utilizzata per rappresentare il risultato di un'operazione ` tryEmplace()`. Maggiori informazioni...
Questa struttura è stata introdotta in Qt 6.9.
Funzioni pubbliche
Variabili pubbliche
Descrizione dettagliata
La classe ` TryEmplaceResult ` viene utilizzata in ` QHash ` per rappresentare il risultato di un'operazione ` tryEmplace()`. Contiene un ` iterator ` all'elemento appena creato o all'elemento preesistente che ha impedito l'inserimento, e un valore booleano, ` inserted`, che indica se l'inserimento ha avuto luogo.
Vedi anche QHash e QHash::tryEmplace().
Documentazione delle funzioni membro
[default] TryEmplaceResult::TryEmplaceResult()
Crea un'istanza di ` TryEmplaceResult` tramite il costruttore predefinito.
Documentazione sulle variabili membro
bool TryEmplaceResult::inserted
Questo valore è " false " se esisteva già una voce con la stessa chiave.
QHash<Key, T>::iterator TryEmplaceResult::iterator
Contiene l'iteratore che punta all'elemento appena inserito oppure all'elemento che ha impedito l'inserimento.
© 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.