IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
ice::TaskPromise< Value > Class Template Reference

#include <ice/task_promise.hxx>

Inheritance diagram for ice::TaskPromise< Value >:
ice::TaskPromiseBase

Public Member Functions

auto get_return_object () noexcept -> ice::Task< Value >
template<typename Other = Value>
requires std::is_nothrow_move_assignable_v<Value> && std::is_nothrow_convertible_v<Other&&, Value>
void return_value (Other &&value) noexcept
auto result () &noexcept -> Value &
auto result () &&noexcept -> Value &&
Public Member Functions inherited from ice::TaskPromiseBase
auto initial_suspend () const noexcept
auto final_suspend () const noexcept
auto set_continuation (ice::coroutine_handle<> coro) noexcept
auto continuation () const noexcept -> ice::coroutine_handle<>
void unhandled_exception () const noexcept
auto operator new (size_t size) noexcept -> void *
void operator delete (void *ptr) noexcept

Additional Inherited Members

Public Types inherited from ice::TaskPromiseBase
using TaskDebugAllocator = ice::detail::TaskDebugAllocator
Protected Member Functions inherited from ice::TaskPromiseBase
 TaskPromiseBase () noexcept=default

Member Function Documentation

◆ get_return_object()

template<typename Value>
auto ice::TaskPromise< Value >::get_return_object ( ) -> ice::Task< Value >
inlinenoexcept

◆ result() [1/2]

template<typename Value>
auto ice::TaskPromise< Value >::result ( ) && -> Value &&
inlinenoexcept

◆ result() [2/2]

template<typename Value>
auto ice::TaskPromise< Value >::result ( ) & -> Value &
inlinenoexcept

◆ return_value()

template<typename Value>
template<typename Other = Value>
requires std::is_nothrow_move_assignable_v<Value> && std::is_nothrow_convertible_v<Other&&, Value>
void ice::TaskPromise< Value >::return_value ( Other && value)
inlinenoexcept

The documentation for this class was generated from the following files: