LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
LC::Util::detail::PromiseRet< R > Struct Template Reference

#include "task.h"

+ Inheritance diagram for LC::Util::detail::PromiseRet< R >:
+ Collaboration diagram for LC::Util::detail::PromiseRet< R >:

Public Types

using ReturnType_t = R
 

Public Member Functions

template<typename U = R>
void return_value (this auto &&self, U &&val)
 

Public Attributes

std::optional< R > Ret_
 
- Public Attributes inherited from LC::Util::detail::PromiseBase
std::atomic< size_t > Refs_ = 1
 
std::atomic< std::coroutine_handle<> > Continuation_ {}
 
std::exception_ptr Exception_ {}
 

Static Public Attributes

static constexpr bool IsVoid = false
 

Detailed Description

template<typename R>
struct LC::Util::detail::PromiseRet< R >

Definition at line 30 of file task.h.

Member Typedef Documentation

◆ ReturnType_t

template<typename R >
using LC::Util::detail::PromiseRet< R >::ReturnType_t = R

Definition at line 32 of file task.h.

Member Function Documentation

◆ return_value()

template<typename R >
template<typename U = R>
void LC::Util::detail::PromiseRet< R >::return_value ( this auto &&  self,
U &&  val 
)
inline

Definition at line 39 of file task.h.

Member Data Documentation

◆ IsVoid

template<typename R >
constexpr bool LC::Util::detail::PromiseRet< R >::IsVoid = false
static

Definition at line 34 of file task.h.

◆ Ret_

template<typename R >
std::optional<R> LC::Util::detail::PromiseRet< R >::Ret_

Definition at line 36 of file task.h.


The documentation for this struct was generated from the following file: