S S wrote:
> On May 6, 2:48 pm, dizzy <di...@[EMAIL PROTECTED]
> wrote:
>> It does not need to. And btw, it does not want to find equality, it
wants to
>> find "equivalence", any good stdlib book will describe the difference
>> between the two. Basically, you check for equality with op==/!= and you
>> check for equivalence with an expression like iff (!(arg1 < arg2) &&
!(arg2
>> < arg1)) then arg1 and arg2 are equivalent for your given order
predicate.
>>
>>> I just
>>> mentioned strcmp(s1, s2) < 0
>>> which means, when strcmp(s1, s2) == 0 (in case of match)
>>> it will return false. So how set/map are able to find the const char*
>>> value?
>> See above.
>
> Dizzy,
>
> How does this strcmp(s1, s2) < 0 fitting in the equivalence theorem?
> It will not return true in case they are equivalent.
It does not, reread the reply to see how the less than operator is used
to determine equivalence.
--
Ian Collins.


|