size

Syntax:

    #include <bitset>
    size_t size() const;

The size() function returns the number of bits that the bitset can hold.