std::coroutine_handle<Promise>:: operator bool
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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)
|
| Member functions | ||||
| Conversion | ||||
| Observers | ||||
|
coroutine_handle::operator bool
|
||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
| Non-member functions | ||||
| Helper classes | ||||
|
constexpr
explicit
operator
bool
(
)
const
noexcept
;
|
(C++20부터) | |
* this 가 널이 아닌지 확인합니다. 즉, * this 의 값이 일부 코루틴의 promise 객체에서 얻어진 것인지 여부를 검사합니다. return bool ( address ( ) ) ; 와 동일합니다.
만약
Promise
가
std::noop_coroutine_promise
인 경우, 이 변환 함수는 항상
true
를 반환합니다.
매개변수
(없음)
반환값
bool
(
address
(
)
)
, 또는
true
만약
Promise
가
std::noop_coroutine_promise
인 경우.
참고 항목
|
기반 주소, 즉 코루틴을 지원하는 포인터를 내보냅니다
(public member function) |