Class UID#

Class Documentation#

class UID#

Unique identifier, basically a randomly generated 64-bit number.

Public Functions

UID()#

Constructor. Generated a new unique identifier.

constexpr ~UID() = default#

Destructor.

consteval UID(const UID &other) noexcept = delete#

Copy constructor.

constexpr UID(UID &&other) noexcept = default#

Move constructor.

consteval UID &operator=(const UID &other) noexcept = delete#

Copy assignment operator.

constexpr UID &operator=(UID &&other) noexcept = default#

Move assignment operator.

constexpr operator u64() const noexcept#

Retrieve the unique identifier as a u64.

Returns:

Unique identifier as u64.