• The first form returns the first element in the range [beg,end) that has a value equal to the value
of the following element.
• The second form returns the first element in the range [beg,end) for which the binary predicate
op(elem,nextElem)
yields true.
• Both forms return end if no matching elements are found.
• Note that op should not change its state during a function call. See Section 10.1.4, page 483, for
details.