C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::hash/(may be)formatter specializations for enums

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Tue, 22 Nov 2022 21:36:51 +0100
Hi,

Il 22/11/22 20:33, Nikl Kelbon via Std-Proposals ha scritto:
> C++20 concepts provides great possbility to add specialization
> std::hash, why we dont have it?

What do you mean? std::hash is already specialized for all enum types.

https://eel.is/c++draft/unord.hash#2.sentence-3

Thanks,
-- 
Giuseppe D'Angelo | giuseppe.dangelo_at_[hidden] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Received on 2022-11-22 20:36:55