algobase.h (equal): Call parallel variant for applicable overloads.

2010-11-09  François Dumont  <francois.cppdevs@free.fr>
            Johannes Singler  <singler@kit.edu>

        * include/parallel/algobase.h (equal):  Call parallel variant
        for applicable overloads.


Co-Authored-By: Johannes Singler <singler@kit.edu>

From-SVN: r166494
This commit is contained in:
François Dumont 2010-11-09 16:34:58 +01:00 committed by Johannes Singler
parent b99fd9f435
commit de084f55c6
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2010-11-09 François Dumont <francois.cppdevs@free.fr>
Johannes Singler <singler@kit.edu>
* include/parallel/algobase.h (equal): Call parallel variant
for applicable overloads.
2010-11-09 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_tree.h (_Rb_tree<>::_M_const_cast_iter): Add

View File

@ -142,8 +142,7 @@ namespace __parallel
inline bool
equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2)
{
return _GLIBCXX_STD_P::mismatch(__begin1, __end1, __begin2).first
== __end1;
return mismatch(__begin1, __end1, __begin2).first == __end1;
}
// Public interface
@ -152,8 +151,7 @@ namespace __parallel
equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
_Predicate __pred)
{
return _GLIBCXX_STD_P::mismatch(__begin1, __end1, __begin2, __pred).first
== __end1;
return mismatch(__begin1, __end1, __begin2, __pred).first == __end1;
}
// Sequential fallback