#include <icy/util.h>Semantic version number with major, minor, and patch fields.
int majorint minorint revisionint build| Return | Name | Description |
|---|---|---|
Version inline | Parses a dot-separated version string into up to four numeric fields. Unspecified fields default to 0. Examples: "1.2.3", "2.0", "3.7.8.0". | |
bool | operator< inline | Returns true if this version is strictly less than other. Compares fields in major, minor, revision, build order. |
bool | operator== const inline | Returns true if all four version fields are equal. |
inline
inline Version(std::string_view version)Parses a dot-separated version string into up to four numeric fields. Unspecified fields default to 0. Examples: "1.2.3", "2.0", "3.7.8.0".
version Dot-separated version string.inline
inline bool operator<(const Version & other)Returns true if this version is strictly less than other. Compares fields in major, minor, revision, build order.
other Version to compare against.true if this < other.
const inline
inline bool operator==(const Version & other) constReturns true if all four version fields are equal.
other Version to compare against.true if this == other.