std::hash<std::coroutine_handle>
來自 cppreference.com
定義於標頭檔案 <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) |
雜湊函式物件 (類模板) |