C
cppaddict
Hi,
I am going to have a series of bit flags which I could store in an
array, or as a string ("10011001"), or any other way.
I want to be able to turn this series of bits into an int. I know C++
must have some class or built-in functionality for this, but my web
searching thus far hasn't found it. Can someone let me know what I
should use?
I am flexible on how to store the bits, so I'm taking suggestions for
that too. Ideally, I want whatever combination of bit-storage and
bit-to-int conversion mechanism is fastest.
Thanks for any ideas,
cpp
I am going to have a series of bit flags which I could store in an
array, or as a string ("10011001"), or any other way.
I want to be able to turn this series of bits into an int. I know C++
must have some class or built-in functionality for this, but my web
searching thus far hasn't found it. Can someone let me know what I
should use?
I am flexible on how to store the bits, so I'm taking suggestions for
that too. Ideally, I want whatever combination of bit-storage and
bit-to-int conversion mechanism is fastest.
Thanks for any ideas,
cpp