beautypg.com

HP Integrity NonStop H-Series User Manual

Page 156

background image

cout << " is equal to ";
else if (*aDiffPosition < *bDiffPosition)
cout << " is less than ";
else
cout << " is greater than ";
cout << b << endl;
}

A second form of the mismatch() algorithm is similar to the one illustrated, except it accepts a
binary predicate as a fourth argument. This binary function is used to compare elements, in
place of the == operator.

This manual is related to the following products: