xtd 0.2.0
Loading...
Searching...
No Matches

◆ compare_to()

int32 xtd::version::compare_to ( const version version) const
overridevirtualnoexcept

Compares the current xtd::version object to a specified object and returns an indication of their relative values.

Parameters
versionAn object to compare.
Returns
A signed integer that indicates the relative values of the two objects, as shown in the following table.
Return value Meaning
Less than zero The current xtd::version object is a version before version.
Zero The current xtd::version object is the same version as version.
Greater than zero The current xtd::version object is a version subsequent to version.
Remarks
The components of Version in decreasing order of importance are: major, minor, build, and revision. An unknown component is assumed to be older than any known component. For example:

Implements xtd::icomparable< version >.