cpp/numeric/countr zero

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

.

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