[Interest] popcnt for QFlags

Konstantin Shegunov kshegunov at gmail.com
Fri Mar 15 13:52:47 CET 2019

Do we have some Qt way to count the raised bits in a QFlags instance. I saw
there's an inline qt_builtin_popcount, however it's not documented. Can I
rely that it's going to always exist (probably not)? Can we get a method in
QFlags that does this - counting the number of raised bits, instead of
working around it (or implementing it myself)?

Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190315/8cdec309/attachment.html>

More information about the Interest mailing list