This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH][libstdc++-v3 parallel mode] Tackle XXX todos: move compare to last place
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 23 Sep 2009 20:04:57 -0700
- Subject: Re: [PATCH][libstdc++-v3 parallel mode] Tackle XXX todos: move compare to last place
- References: <4ABA363F.6000406@ira.uka.de>
> 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