27 explicit operator bool()
const;
44 auto
string() const ->
std::
string;
Base class for objects which are uniquely identifiable.
auto uuid() const -> Uuid
void setUuid(const Uuid &uuid)
Universally unique identifier class.
static auto Uuid4() -> Uuid
Generate a UUIDv4 using pseudo-random numbers.
void reset()
Reset the UUID to a nil value.
auto is_nil() const -> bool
Returns true is all bytes are zero.
std::array< Byte, 16 > buffer_
auto short_string() const -> std::string
Get a string representation of the short UUID.
static auto FromString(const std::string &str) -> Uuid
Construct a UUID from a string.
auto operator==(const Uuid &rhs) const -> bool
auto operator!=(const Uuid &rhs) const -> bool
Project top-level namespace.
ISO C++ top-level namespace.
auto operator()(smgl::Uuid const &u) const noexcept -> std::size_t