std:: hash <std::chrono::duration>
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Non-member functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definido en el encabezado
<chrono>
|
||
|
template
<
class
Rep,
class
Period
>
struct hash < std:: chrono :: duration < Rep, Period >> ; |
(desde C++26) | |
La especialización de plantilla de std::hash para std::chrono::duration permite a los usuarios obtener hashes de objetos de tipo std:: chrono :: duration < Rep, Period > . Esta especialización está habilitada si y solo si tanto std:: hash < Rep > como std:: hash < Period > están habilitados.
Notas
| Macro de prueba de características | Valor | Std | Característica |
|---|---|---|---|
__cpp_lib_chrono
|
202306L
|
(C++26) |
Soporte de hashing
para clases de valor de
std::chrono
|
Véase también
|
(C++11)
|
objeto función hash
(plantilla de clase) |