1 .. Algorithms/Querying Algorithms//equal |100
14 , typename Pred = is_same<_1,_2>
18 typedef |unspecified| type;
26 Returns a true-valued |Integral Constant| if the two sequences ``Seq1``
27 and ``Seq2`` are identical when compared element-by-element.
35 #include <boost/mpl/equal.hpp>
42 +-------------------+-------------------------------+-----------------------------------+
43 | Parameter | Requirement | Description |
44 +===================+===============================+===================================+
45 | ``Seq1``, ``Seq2``| |Forward Sequence| | Sequences to compare. |
46 +-------------------+-------------------------------+-----------------------------------+
47 | ``Pred`` | Binary |Lambda Expression| | A comparison criterion. |
48 +-------------------+-------------------------------+-----------------------------------+
54 For any |Forward Sequence|\ s ``s1`` and ``s2`` and a binary |Lambda Expression| ``pred``:
59 typedef equal<s1,s2,pred>::type c;
65 ``c::value == true`` is and only if ``size<s1>::value == size<s2>::value``
66 and for every iterator ``i`` in |begin/end<s1>| ``deref<i>::type`` is identical to
70 advance< begin<s2>::type, distance< begin<s1>::type,i >::type >::type
76 Linear. At most ``size<s1>::value`` comparisons.
84 typedef vector<char,int,unsigned,long,unsigned long> s1;
85 typedef list<char,int,unsigned,long,unsigned long> s2;
87 BOOST_MPL_ASSERT(( equal<s1,s2> ));
93 |Querying Algorithms|, |find|, |find_if|
96 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
97 Distributed under the Boost Software License, Version 1.0. (See accompanying
98 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)