이 페이지에서

QHash::TryEmplaceResult Struct

struct QHash::TryEmplaceResult

TryEmplaceResult 클래스는 tryEmplace() 연산의 결과를 나타내는 데 사용됩니다. 더 보기...

이 구조체는 Qt 6.9에서 도입되었습니다.

공개 함수

공개 변수

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

상세 설명

TryEmplaceResult 클래스는 QHash 에서 tryEmplace() 연산의 결과를 나타내는 데 사용됩니다. 이 클래스는 새로 생성된 항목이나 삽입을 방해한 기존 항목에 대한 iterator 와 삽입이 수행되었는지 여부를 나타내는 부울 값 inserted 을 보유합니다.

QHash 및 QHash::tryEmplace()도 참조하십시오 .

멤버 함수 문서

[default] TryEmplaceResult::TryEmplaceResult()

TryEmplaceResult 의 인스턴스를 기본 생성자로 생성합니다.

멤버 변수 설명

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.