Describes 2-component(major version, minor version) version information.
You can find more information in comments below.
struct Version2
{
int Major;
int Minor;
Version2(); // Construct with 0.0 version
Version2(const int major, const int minor); // Construct with specified version
Version2(const Version2&) = default;
Version2(Version2&&) = default;
Version2 &operator=(const Version2&) = default;
Version2 &operator=(Version2&&) = default;
bool operator==(const Version2 &other) const; // Compare if it equals to another version
bool operator!=(const Version2 &other) const; // Compare if it doesn't equal to another version
bool operator>(const Version2 &other) const; // Check if it greater than another one
bool operator<(const Version2 &other) const; // Check if it less than another one
bool operator>=(const Version2 &other) const; // Check if it greater or equal to another one
bool operator<=(const Version2 &other) const; // Check if it less or equal to another one
};
Namespace: | nitisa |
Include: | Nitisa/Core/Version2.h |