std:: hash <std::coroutine_handle>
From cppreference.net
<
cpp
|
coroutine
|
coroutine handle
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Coroutine support
| Coroutine traits | ||||
|
(C++20)
|
||||
| Coroutine handle | ||||
|
(C++20)
|
||||
| No-op coroutines | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Trivial awaitables | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Range generators | ||||
|
(C++23)
|
std::coroutine_handle
| Member functions | ||||
| Conversion | ||||
| Observers | ||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
hash
<std::coroutine_handle>
|
|
ヘッダーで定義
<coroutine>
|
||
|
template
<
class
Promise
>
struct hash < std:: coroutine_handle < Promise >> ; |
(C++20以降) | |
std::hash の std::coroutine_handle に対するテンプレート特殊化は、ユーザーが型 std:: coroutine_handle < P > のオブジェクトのハッシュ値を取得することを可能にします。
operator()
特殊化の
operator()
はnoexceptです。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
(C++11)
|
ハッシュ関数オブジェクト
(クラステンプレート) |