omni::extras::versionsCmp
Defined in omni/extras/Version.h
-
template<class VersionT>
inline int omni::extras::versionsCmp(const VersionT &lhs, const VersionT &rhs) Less-than comparator for two versions.
- Template Parameters
VersionT – The type of the version struct, typically omni::ext::Version or SemanticVersion.
- Parameters
lhs – The first version to compare
rhs – The second version to compare
- Returns
-1 if
lhs
should be ordered-beforerhs
; 0 if eequal; 1 in all other cases