[Interest] popcnt for QFlags
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)?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest