In c++. I initialize a bitset to -3 like:
std::bitset<32> mybit(-3);
Is there a grace way that convert mybit
to -3
. Beacause bitset object only have methods like to_ulong
and to_string
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…