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)
|
해시 함수 객체
(클래스 템플릿) |