|
bitset::countpublic member function
size_t count ( ); Count bits set Returns the amount of bits in the bitset that are set (i.e., have a value of 1).ParametersnoneReturn valueThe number of bits set.size_t is an unsigned integral type. Example
Output:
See also
|