Namespaces
Variants

std::hash<std::coroutine_handle>

来自 zh.cppreference.net
 
 
 
协程支持
协程特征
协程句柄
无操作协程
平凡等待器
范围生成器
(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)
哈希函数对象
(类模板)