ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
toy::application Namespace Reference

Application-level types and utilities (version, etc.). More...

Classes

struct  Version
 Application version information structure. More...

Functions

constexpr bool operator== (const Version &lhs, const Version &rhs) noexcept
 Equality of two toy::application::Version values.
constexpr strong_ordering operator<=> (const Version &lhs, const Version &rhs) noexcept
 Three-way comparison of two toy::application::Version values (lexicographic order).

Detailed Description

Application-level types and utilities (version, etc.).

Function Documentation

◆ operator<=>()

strong_ordering toy::application::operator<=> ( const Version & lhs,
const Version & rhs )
nodiscardconstexprnoexcept

Three-way comparison of two toy::application::Version values (lexicographic order).

Compares major, then minor, then maintenance, then revision.

Parameters
lhsLeft-hand side version.
rhsRight-hand side version.
Returns
strong_ordering::less, strong_ordering::equal, or strong_ordering::greater.

◆ operator==()

bool toy::application::operator== ( const Version & lhs,
const Version & rhs )
nodiscardconstexprnoexcept

Equality of two toy::application::Version values.

Parameters
lhsLeft-hand side version.
rhsRight-hand side version.
Returns
true if all components are equal, false otherwise.