File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ class MoveOnly
32
32
constexpr int get () const {return data_;}
33
33
34
34
constexpr bool operator ==(const MoveOnly& x) const {return data_ == x.data_ ;}
35
+ constexpr bool operator !=(const MoveOnly& x) const {return data_ != x.data_ ;}
35
36
constexpr bool operator < (const MoveOnly& x) const {return data_ < x.data_ ;}
37
+ constexpr bool operator <=(const MoveOnly& x) const {return data_ <= x.data_ ;}
38
+ constexpr bool operator > (const MoveOnly& x) const {return data_ > x.data_ ;}
39
+ constexpr bool operator >=(const MoveOnly& x) const {return data_ >= x.data_ ;}
36
40
TEST_CONSTEXPR_CXX14 MoveOnly operator +(const MoveOnly& x) const
37
41
{ return MoveOnly{data_ + x.data_ }; }
38
42
TEST_CONSTEXPR_CXX14 MoveOnly operator *(const MoveOnly& x) const
You can’t perform that action at this time.
0 commit comments