cpp/numeric/countl one

Returns the number of consecutive 1 ("one") bits in the value of, starting from the most significant bit ("left").

.

Return value
The number of consecutive 1 bits in the value of, starting from the most significant bit.