Btk
Btk::Impl::AsyncBase< HasSignal, Callable, Args > Struct Template Reference

The async base,It store the return value and the signal. More...

#include <async.hpp>

Inheritance diagram for Btk::Impl::AsyncBase< HasSignal, Callable, Args >:
Collaboration diagram for Btk::Impl::AsyncBase< HasSignal, Callable, Args >:

Public Member Functions

 AsyncBase (Args &&...args)
 Construct a new Async Base object. More...
 
- Public Member Functions inherited from Btk::Impl::AsyncResultHolder< std::invoke_result_t< Callable, Args... > >
void cleanup ()
 
void store (T &&t)
 

Static Public Attributes

static constexpr int has_signal = HasSignal
 

Additional Inherited Members

- Public Attributes inherited from Btk::Impl::AsyncResultHolder< std::invoke_result_t< Callable, Args... > >
union Btk::Impl::AsyncResultHolder::Data data
 

Detailed Description

template<bool HasSignal, class Callable, class ... Args>
struct Btk::Impl::AsyncBase< HasSignal, Callable, Args >

The async base,It store the return value and the signal.

Template Parameters
HasSignalThe value should we enable signal
Callable
Args

Constructor & Destructor Documentation

◆ AsyncBase()

template<bool HasSignal, class Callable, class ... Args>
Btk::Impl::AsyncBase< HasSignal, Callable, Args >::AsyncBase ( Args &&...  args)
inline

Construct a new Async Base object.

Parameters
argsThe args

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