Question: Illustration 2 : The minimal operation which must be defined for any iterator is that two of them can be compared as: Group of answer
Illustration : The minimal operation which must be defined for any iterator is that two of them can be compared as:
Group of answer choices
greater than and less than
greater than only
equal only
equal and not equal
Illustration
class templates
#include
using namespace std;
template
class mypair
T a b;
public:
mypair T first, T second
afirst; bsecond;
T getmax ;
;
template
T mypair :: getmax
T retval;
retval ab a : b;
return retval;
int main
mypair myobject ;
cout myobject.getmax ;
return ;
page
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
