equal

The function equal is used to determine if two ranges are equal.

  template<class InputIterator1, class InputIterator2>
  bool equal
  (InputIterator1 first1, InputIterator1 last1,
  InputIterator2 first2);
  template<class InputIterator1, 
  class InputIterator2,class BinaryPredicate>
  bool equal
  (InputIterator1 first1, InputIterator1 last1,
  InputIterator2 first2, BinaryPredicate pred);
  
Remarks

A bool true is returned if the values are equal or meet the criteria of the predicate.