Added negation
This commit is contained in:
parent
bd04285d48
commit
254bb27f53
@ -10,6 +10,7 @@ public:
|
||||
|
||||
inline Range16 operator-(Range16 a);
|
||||
inline Range16 operator+(Range16 a);
|
||||
inline Range16 operator-();
|
||||
|
||||
inline bool operator==(Range16 a);
|
||||
inline bool operator!=(Range16 a);
|
||||
|
@ -26,10 +26,11 @@ Range16::Range16(short s) {
|
||||
}
|
||||
|
||||
Range16 Range16::operator-(Range16 a) { this->range - a.range; };
|
||||
|
||||
Range16 Range16::operator+(Range16 a) { this->range + a.range; };
|
||||
|
||||
bool Range16::operator==(Range16 a) { return (this->range == a.range); }
|
||||
Range16 Range16::operator-() { -this->range; }
|
||||
|
||||
bool Range16::operator==(Range16 a) { this->range == a.range; }
|
||||
bool Range16::operator!=(Range16 a) { return (this->range != a.range); }
|
||||
|
||||
bool Range16::operator<(Range16 a) { return (this->range < a.range); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user