cppreference.com
>
C++ Bitsets
>
size
size
Syntax:
size_t size();
The size() function returns the number of bits that the bitset can hold.