Qt 's counterpart for ordered associative container std::map
is QMap
, std::set
is QSet
, for unordered associative container std::unordered_map
is QHash
.
What should I use to replace std::unordered_set
in Qt ? There is neither QHash< T, void >
specialization, nor QHash< T >
.
Is there planned analogue?
QSet
is actually Qt's version of std::unordered_set
. What Qt doesn't have is an analog to std::set
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.