fill and fill_n


template <class InIter1, class InIter2>    bool equal(InIter1 start1, InIter1 end1, InIter2 start2);template <class InIter1, class InIter2, class BinPred>     bool equal(InIter1 start1, InIter1 end1, InIter2 start2,                BinPred pfn);

The equal( ) algorithm determines if two ranges are the same. The range determined by start1 and end1 is tested against the sequence pointed to by start2. If the ranges are the same, true is returned. Otherwise, false is returned.

The second form allows you to specify a binary predicate that determines when two elements are equal.

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: