14 using value_type = _Ty;
18 using _Alloc_char =
typename state_type::_Alloc_char;
33 this->
_state->set_exception(std::move(e));
79 using typename awaitable_impl_t<_Ty>::value_type;
91 this->_state->set_value(std::forward<U>(value));
92 this->_state =
nullptr;
96 #ifndef DOXYGEN_SKIP_PROPERTY
98 struct [[nodiscard]] awaitable_t<_Ty&> :
public awaitable_impl_t<_Ty&>
100 using typename awaitable_impl_t<_Ty&>::value_type;
101 using awaitable_impl_t<_Ty&>::awaitable_impl_t;
103 void set_value(_Ty& value)
const
105 this->_state->set_value(value);
106 this->_state =
nullptr;
111 struct [[nodiscard]] awaitable_t<void> :
public awaitable_impl_t<void>
113 using awaitable_impl_t<void>::awaitable_impl_t;
115 void set_value()
const
117 this->_state->set_value();
118 this->_state =
nullptr;
121 #endif //DOXYGEN_SKIP_PROPERTY