The title pretty much summarizes it.
In gcc, you can use the .Find_first()
method on a bitset to get the position of the first significant bit. Is there any equivalent in Visual Studio?
I know you can use _BitScanForward64
in Visual Studio to get the first significant bit, but I work with bitsets of the size larger than 64, and this method only works with 64-bit integers.
I also am not interested in the De Bruijn bit twiddling method.