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: [PATCH][libstdc++-v3 parallel mode] Tackle XXX todos: move compare to last place


> This patch fixes a small todo, and removes another (cannot remove
> duplicates of std:: functors because they have different structure).

What about __gnu_parallel::max and __gnu_parallel::min?

> 2009-09-23  Johannes Singler  <singler@ira.uka.de>
> 
>         * include/parallel/algobase.h
>         (__lexicographical_compare_switch): Move compare template
>         parameter to the end as of others.

This part is ok, thanks.

> include/parallel/checkers.h:  // XXX Compare default template argument

I was wondering about the form here of these sorting functions. Is
there a simpler way to arrange this? Usage is such that all known call
sites include all three arguments. (No default argument is used.)
Compare passed by value... 

?

> include/parallel/for_each_selectors.h:  // XXX move into type_traits?

_Nothing to __accumulate_binop_reduct seem to be utility bits,
unrelated to the rest of the file. Should they be moved elsewhere?

> include/parallel/partition.h:        // XXX _Compare must have
> first__ValueType, second__ValueType,

> include/parallel/partition.h:        // XXX binder2nd only for
> _RAIters??

Sadly, I can't remember this one. I think this is about type
constraints on binder2nd, or questions on the way it's instantiated.

best
-benjamin


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