Is std::search coding fast enough?
Chris Jefferson
chris@bubblescope.net
Wed Jul 4 18:35:00 GMT 2007
On 04/07/07, Dimitris Xochellis <jimxoch@yahoo.gr> wrote:
> Hi Paolo,
>
> The code of the predicate version seems even less efficient to me. I am rather tired and maybe I
> am not thinking straight right now, but what is the reasoning behind of the two loops *A* & *B*
> that seems to do the same thing?
This code is indeed a mess. I 'fixed' in the libstdc++-v7 branch by
deleting it, where the predicate and non-predicate versions got
merged. I believe (although I can't remember which ones off the top of
my head) that a few of the other functions have this strange behaviour
of the predicate and non-predicate versions being unexpectedly
different. As you say, the predicate and non-predicate versions should
really be basically the same.
Chris
More information about the Libstdc++
mailing list