UUID#

A version 4 UUID generator.

Info

To use declarations from this page, include the <essence/uuid.hpp> header.

Note

Performance

Generates 100,000,000 UUID’s over 100 iterations in an average of 1.15 seconds, or roughly 887 million per second.

class uuid#

Container class for a version 4 UUID. Specialization available for std::hash and std::formatter.

uuid::uuid()#

Default constructor, generates immediately.

std::string string() const#

Get a string representation of the UUID.

operator std::string() const#

Implicit conversion operator to a std::string.

u64 low() const noexcept#

Get the underlying lower bits integer.

u64 high() const noexcept#

Get the underlying higher bits integer.

friend std::ostream &operator<<(std::ostream &os, const uuid &self)#

Stream overload for std::cout and the like.