1.5.3.5 Comparing


bool equal(i1,i1last, i2)
bool equal(i1,i1last,i2,bpred)

Check if the values in two ranges match.



bool lexicographical_compare (i1,i1last,i2,i2last) bool lexicographical_compare (i1,i1last,i2,i2last,bpred)

Compare two ranges lexicographically, and return true if the first range is less than the second; otherwise return false.



(i1,i2) mismatch(i1,i1last,i2) (i1,i2) mismatch(i1,i1last,i2, bpred)

Search two ranges for the first two items in corresponding positions that don’t match, and return a pair of iterators pointing to those two items.