C++ Logo

SG12

Advanced search

Subject: Re: [ub] C provenance semantics proposal
From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2019-04-10 18:34:22


On 11/04/2019 00.35, David Vandevoorde wrote:
>
>
>> On Apr 10, 2019, at 6:28 PM, Jens Maurer <Jens.Maurer_at_[hidden]> wrote:
>>
>> On 11/04/2019 00.06, Jens Gustedt wrote:

>>> On Wed, 10 Apr 2019 23:40:37 +0200 Jens Maurer <Jens.Maurer_at_[hidden]>
>>> wrote:

>> So, again, why do you need to compare pointers to arbitrary
>> objects?
>
> For hash tables where the keys are pointers to objects?

Ok, what about binary trees where the keys are pointers to objects?
(No worst-case situations, which might be important in some cases.)

Seems like you want arbitrary equality comparisons if and only if
you want arbitrary relational comparisons for the "containers"
use case.

Jens


SG12 list run by herb.sutter at gmail.com