...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Front Page / Algorithms / Querying Algorithms / equal |
template< typename Seq1 , typename Seq2 , typename Pred = is_same<_1,_2> > struct equal { typedef unspecified type; };
Returns a true-valued Integral Constant if the two sequences Seq1 and Seq2 are identical when compared element-by-element.
#include <boost/mpl/equal.hpp>
Parameter | Requirement | Description |
---|---|---|
Seq1, Seq2 | Forward Sequence | Sequences to compare. |
Pred | Binary Lambda Expression | A comparison criterion. |
For any Forward Sequences s1 and s2 and a binary Lambda Expression pred:
typedef equal::type c;
Return type: | |
---|---|
Semantics: | c::value == true is and only if size advance< begin |
Linear. At most size
typedef vectors1; typedef list s2; BOOST_MPL_ASSERT(( equal ));