Class Uuid (2.37.0-rc)

A representation of the Spanner UUID type: A fixed size 16 byte value that can be represented as a 32-digit hexadecimal string.

Constructors

Uuid(Uuid &&)

Regular value type, supporting copy, assign, move.

Parameter
Name Description
Uuid &&

Uuid(Uuid const &)

Regular value type, supporting copy, assign, move.

Parameter
Name Description
Uuid const &

Uuid()

Default construction yields a zero value UUID.

Uuid(absl::uint128)

Construct a UUID from one unsigned 128-bit integer.

Parameter
Name Description
value absl::uint128

Uuid(std::uint64_t, std::uint64_t)

Construct a UUID from two unsigned 64-bit pieces.

Parameters
Name Description
high_bits std::uint64_t
low_bits std::uint64_t

Operators

operator=(Uuid &&)

Regular value type, supporting copy, assign, move.

Parameter
Name Description
Uuid &&
Returns
Type Description
Uuid &

operator=(Uuid const &)

Regular value type, supporting copy, assign, move.

Parameter
Name Description
Uuid const &
Returns
Type Description
Uuid &

operator absl::uint128() const

Conversion to unsigned 128-bit integer representation.

operator std::string() const

Conversion to a lower case string formatted as:

[8 hex-digits]-[4 hex-digits]-[4 hex-digits]-[4 hex-digits]-[12 hex-digits] Example: 0b6ed04c-a16d-fc46-5281-7f9978c13738

Functions

As64BitPair() const

Returns a pair of unsigned 64-bit integers representing the UUID.

Returns
Type Description
std::pair< std::uint64_t, std::uint64_t >