25 static const char* hex =
"0123456789abcdef";
27 std::string str(32,
'0');
30 for (std::byte
byte:
data)
32 *(c++) = hex[
static_cast<std::uint8_t
>(
byte) >> 4];
33 *(c++) = hex[
static_cast<std::uint8_t
>(
byte) & 15];
128-bit universally unique identifier (UUID).
std::array< std::byte, 16 > data
UUID data.
std::string string() const
Returns a string representation of the UUID.
std::ostream & operator<<(std::ostream &os, const uuid &id)
Writes a UUID to an output stream.