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
Checkout boost's implementation:
#include using namespace boost::multiprecision; int128_t v = 1;
This is better than strings and arrays, especially if you need to do arithmetic operations with it.