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)
定义于头文件 <coroutine>
template < class Promise >
struct hash < std:: coroutine_handle < Promise >> ;
(C++20 起)

针对 std::hash 的模板特化版本 std::coroutine_handle 允许用户获取类型为 std:: coroutine_handle < P > 对象的哈希值。

operator() 特化的 noexcept 属性保持不变。

示例

参见

(C++11)
哈希函数对象
(类模板)