friend compare function
| 36 | |
| 37 | // friend compare function |
| 38 | int compare(const Integer& obj1, const Integer& obj2) |
| 39 | { |
| 40 | if (obj1.m_value < obj2.m_value) |
| 41 | return -1; |
| 42 | else if (obj1.m_value == obj2.m_value) |
| 43 | return 0; |
| 44 | else |
| 45 | return 1; |
| 46 | } |
| 47 | |
| 48 | // non-friend compare function |
| 49 | int nonFriendCompare(const Integer& obj1, const Integer& obj2) |
no outgoing calls
no test coverage detected