Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template equal

boost::algorithm::equal

Synopsis

// In header: <boost/algorithm/cxx14/equal.hpp>


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

Description

Parameters:

first1

The start of the first range.

first2

The start of the second range.

last1

One past the end of the first range.

last2

One past the end of the second range.

pred

A predicate for comparing the elements of the ranges

Returns:

true if all elements in the two ranges are equal


PrevUpHomeNext