This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: N3671 std::mismatch and std::equals parallel versions


On 30 September 2013 21:09, François Dumont <frs.dumont@gmail.com> wrote:
> Hi
>
>     Here is a patch to provide real parallel version of N3671 overloads of
> std::mismatch and std::equals. It is similar to what has been done for
> previous overloads.
>
>     Tested under Linux x86_64 parallel mode.
>
> 2013-09-30  François Dumont  <fdumont@gcc.gnu.org>
>
>         * include/parallel/algobase.h (mismatch, equals): Provide parallel
>         version for N3671 overloads.
>
>     Ok to commit ?
>
> François
>

+  // Parallel mismatch for random access iterators
+  template<typename _RAIter1, typename _RAIter2, typename _Predicate>
+    inline bool
+    __equal_switch(_RAIter1 __begin1, _RAIter1 __end1,
+           _RAIter2 __begin2, _RAIter2 __end2, _Predicate __pred,
+           random_access_iterator_tag, random_access_iterator_tag)

The comment says mismatch, not equal.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]