cpp/numeric/countr one

Returns the number of consecutive 1 bits in the value of, starting from the least significant bit ("right").

.

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