Is there a 128 bit integer in C++?

后端 未结 7 641
滥情空心
滥情空心 2020-12-01 11:41

I need to store a 128 bits long UUID in a variable. Is there a 128-bit datatype in C++? I do not need arithmetic operations, I just want to easily store and read the value v

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 12:14

    use the TBigInteger template and set any bit range in the template array like this TBigInt<128,true> for being a signed 128 bit integer or TBigInt<128,false> for being an unsigned 128 bit integer. Hope that helps maybe a late reply and someone else found this method already.

提交回复
热议问题