operator > method

bool operator >(
  1. VersionXYZ other
)

Implementation

bool operator >(VersionXYZ other) {
  if (x > other.x) {
    return true;
  } else if (x < other.x) {
    return false;
  } else {
    if (y > other.y) {
      return true;
    } else if (y < other.y) {
      return false;
    } else {
      if (z > other.z) {
        return true;
      } else if (z < other.z) {
        return false;
      } else {
        return false;
      }
    }
  }
}