3#ifndef TETL_COROUTINE_COROUTINE_HANDLE_HPP
4#define TETL_COROUTINE_COROUTINE_HANDLE_HPP
9#if defined(__cpp_coroutines)
14template <
typename Promise =
void>
33 [[nodiscard]]
constexpr auto address() const noexcept ->
void* {
return _handle; }
42 [[nodiscard]]
constexpr explicit operator bool() const noexcept {
return _handle !=
nullptr; }
44 [[nodiscard]]
auto done() const noexcept ->
bool {
return __builtin_coro_done(
_handle); }
Definition adjacent_find.hpp:8
decltype(nullptr) nullptr_t
etl::nullptr_t is the type of the null pointer literal, nullptr. It is a distinct type that is not it...
Definition nullptr_t.hpp:13
constexpr auto address() const noexcept -> void *
Definition coroutine_handle.hpp:33
constexpr coroutine_handle() noexcept=default
constexpr auto operator=(nullptr_t) noexcept -> coroutine_handle &
Definition coroutine_handle.hpp:27
auto operator()() const -> void
Definition coroutine_handle.hpp:46
static constexpr auto from_address(void *addr) noexcept -> coroutine_handle
Definition coroutine_handle.hpp:35
auto resume() const -> void
Definition coroutine_handle.hpp:48
auto destroy() const -> void
Definition coroutine_handle.hpp:50
void * _handle
Definition coroutine_handle.hpp:53
auto done() const noexcept -> bool
Definition coroutine_handle.hpp:44
Definition coroutine_handle.hpp:15
auto operator()(coroutine_handle< T > const &v) const noexcept -> size_t
Definition coroutine_handle.hpp:60
hash
Definition hash.hpp:14