This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: N3671 std::mismatch and std::equals parallel versions
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 30 Sep 2013 21:26:19 +0100
- Subject: Re: N3671 std::mismatch and std::equals parallel versions
- Authentication-results: sourceware.org; auth=none
- References: <5249DA82 dot 8090202 at gmail dot com>
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.