Question: how can sort this unary operator and then sort them Unary negation operator ( - ) (to be implemented by students) Numbers operator-()const This
how can sort this unary operator and then sort them
Unary negation operator ( - ) (to be implemented by students)
Numbers operator-()const
This unary operator (that is incapable of modifying the current object) will return a descending sorted copy of the Numbers object.
Unary plus operator ( + ) (to be implemented by students)
Numbers operator+()const
This unary operator (that is incapable of modifying the current object) will return an ascending sorted copy of the Numbers object.
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
To implement the unary negation operator and unary plus operator for sorting a Numbers object you ca... View full answer
Get step-by-step solutions from verified subject matter experts
