cpp/algorithm/equal

@1,3@ Returns if the range  is equal to the range, and  otherwise. @5,7@ Returns if the range  is equal to the range, and  otherwise.

@2,4,6,8@ Same as, but executed according to.

Two ranges are considered equal if they have the same number of elements and, for every iterator in the range,  equals. The overloads use  to determine if two elements are equal, whereas overloads  use the given binary predicate.

Return value
@5-8@If the length of the range does not equal the length of the range, returns.

If the elements in the two ranges are equal, returns.

Otherwise returns.

Complexity
@1,3@At most -  applications of the predicate @5,7@At most min( -, - ) applications of the predicate. However, if and  meet the requirements of  and  then no applications of the predicate are made (size mismatch is detected without looking at any elements). @2,4,6,8@ same, but the complexity is specified as O(x), rather than "at most x".