Namespaces
Variants

std::coroutine_handle<Promise>:: operator bool

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
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)