size

C++ Reference

size
Syntax:
  #include <bitset>
  size_t size();

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