count

Syntax:

    #include <bitset>
    size_type count() const;

The function count() returns the number of bits that are set to 1 in the bitset.

Related Topics: any