count_bits
Count the number of set bits in bitstring str and return the number as result.
str
Here’s a very simple example:
string s; s = set_bit("", 3); s = set_bit(s, 15); count_bits(s) // returns 2
clear_bit(E), set_bit(E), test_bit(E), next_bit(E), last_bit(E), or_bits(E), xor_bits(E), invert_bits(E), copy_bits(E)
clear_bit
set_bit
test_bit
next_bit
last_bit
or_bits
xor_bits
invert_bits
copy_bits