|
ORM C++
|
Public Member Functions | |
| constexpr | Uuid () noexcept=default |
| constexpr | Uuid (std::array< std::byte, 16 > valueInit) noexcept |
| constexpr auto | bytes () const noexcept -> const std::array< std::byte, 16 > & |
| auto | toString () const -> std::string |
| constexpr auto | operator== (const Uuid &other) const noexcept -> bool |
| constexpr auto | operator<=> (const Uuid &other) const noexcept -> std::strong_ordering |
Static Public Member Functions | |
| static auto | parse (std::string_view text) -> Uuid |
A 128-bit UUID in canonical byte order, independent of a database backend.
Default construction produces the nil UUID. Parsing accepts exactly the 8-4-4-4-12 hexadecimal format, with either case; formatting uses lowercase. Every 128-bit pattern is representable. Byte ordering in C++ does not promise the same order as a database's native UUID comparisons.
Definition at line 77 of file values.cppm.
|
constexprdefaultnoexcept |
|
inlineexplicitconstexprnoexcept |
Definition at line 82 of file values.cppm.
|
inlinenodiscardconstexprnoexcept |
Definition at line 84 of file values.cppm.
|
inlineconstexprnoexcept |
Definition at line 106 of file values.cppm.
|
inlineconstexprnoexcept |
Definition at line 94 of file values.cppm.
|
staticnodiscard |
| std::invalid_argument | if the input is not in the required format. |
|
nodiscard |