std::coroutine_handle<Promise>::operator bool
cppreference.net에서
constexpr explicit operator bool() const noexcept;
|
(C++20부터) | |
다음을 확인합니다: *this 가 널이 아닌지, 즉 *this 가 어떤 코루틴의 프로미스 객체에서 얻어졌는지 확인합니다. 다음 식과 동일합니다: return bool(address());.
만약 Promise 가 std::noop_coroutine_promise 이라면, 이 변환 함수는 항상 다음을 반환합니다: true.
매개변수
(없음)
반환값
bool
(
address
(
)
)
, 또는
true
만약
Promise
가
std::noop_coroutine_promise
인 경우.
참고 항목
|
기반 주소, 즉 코루틴을 지원하는 포인터를 내보냅니다
(public member function) |