adding extra operators
This commit is contained in:
parent
b83a49298e
commit
d3c2f60fe0
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ struct unsigned_int {
|
||||||
|
|
||||||
friend bool operator==( const unsigned_int& i, const uint32_t& v ) { return v == i.value; }
|
friend bool operator==( const unsigned_int& i, const uint32_t& v ) { return v == i.value; }
|
||||||
friend bool operator!=( const unsigned_int& i, const uint32_t& v ) { return v != i.value; }
|
friend bool operator!=( const unsigned_int& i, const uint32_t& v ) { return v != i.value; }
|
||||||
|
friend bool operator<( const unsigned_int& i, const uint32_t& v ) { return v < i.value; }
|
||||||
|
friend bool operator>=( const unsigned_int& i, const uint32_t& v ) { return v >= i.value; }
|
||||||
|
friend bool operator<( const unsigned_int& i, const unsigned_int& v ) { return v < i.value; }
|
||||||
|
friend bool operator>=( const unsigned_int& i, const unsigned_int& v ) { return v >= i.value; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct signed_int {
|
struct signed_int {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue