Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::coroutine_handle<Promise>::operator bool

      From cppreference.com
      <cpp‎ |coroutine‎ |coroutine handle
       
       
      Utilities library
       
      Coroutine support
      Coroutine traits
      Coroutine handle
      No-op coroutines
      Trivial awaitables
      Range generators
      (C++23)
       
       
      constexprexplicit operatorbool()constnoexcept;
      (since C++20)

      Checks whether*this is non-null, i.e. the value of*this is obtained from the promise object of some coroutine. Equivalent toreturnbool(address());.

      IfPromise isstd::noop_coroutine_promise, this conversion function always returnstrue.

      [edit]Parameters

      (none)

      [edit]Return value

      bool(address()), ortrue ifPromise isstd::noop_coroutine_promise.

      [edit]See also

      exports the underlying address, i.e. the pointer backing the coroutine
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/coroutine/coroutine_handle/operator_bool&oldid=162090"

      [8]ページ先頭

      ©2009-2025 Movatter.jp