Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-10-16 23:58:04


Howard Hinnant wrote:
> Given two values x and y, if x == y, it is convenient for hash(x) == hash(y).
>
> In this situation, given a floating point value r, complex{r) == r, so it makes
> sense that hash(complex{r}) == hash(r). This might enable heterogeneous
> hash table lookup.

But that already doesn't hold in general for int/long, float/double,
int/double, and so on.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk