Namespaces
Variants

std:: hash <std::coroutine_handle>

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
Definiert im Header <coroutine>
template < class Promise >
struct hash < std:: coroutine_handle < Promise >> ;
(seit C++20)

Die Template-Spezialisierung von std::hash für std::coroutine_handle ermöglicht es Benutzern, Hashwerte von Objekten des Typs std:: coroutine_handle < P > zu erhalten.

operator() der Spezialisierung ist noexcept.

Beispiel

Siehe auch

(C++11)
Hash-Funktionsobjekt
(Klassentemplate)