This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Remove algo duplications
2012/6/20 Marc Glisse <marc.glisse@inria.fr>:
> (not a comment on your patch) did you have any opinion about the possibility
> to use indirect functors? I.e. functors that get called as f(i,j) instead of
> f(*i,*j), and f(a,b) typically returns *a<*b. I am not sure it is a good
> idea, but it might avoid any regression.
This looks like a very appealing approach to me. Basically similar to
iter_swap when iter_swap would have been a function object.
- Daniel