YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::PromiseCore< V, E, Func, Shared > Class Template Reference

#include <promise_core.hpp>

Inheritance diagram for yaclib::detail::PromiseCore< V, E, Func, Shared >:
[legend]
Collaboration diagram for yaclib::detail::PromiseCore< V, E, Func, Shared >:
[legend]

Public Types

using Base = std::conditional_t< Shared, SharedCore< V, E >, UniqueCore< V, E > >
 

Public Member Functions

 PromiseCore (Func &&f)
 

Additional Inherited Members

- Protected Types inherited from yaclib::detail::FuncCore< Func >
using Storage = std::decay_t< Func >
 
using Invoke = std::conditional_t< std::is_function_v< std::remove_reference_t< Func > >, Storage, Func >
 
- Protected Member Functions inherited from yaclib::detail::FuncCore< Func >
 FuncCore (Func &&f)
 
- Protected Attributes inherited from yaclib::detail::FuncCore< Func >
YACLIB_NO_UNIQUE_ADDRESS State _func
 

Detailed Description

template<typename V, typename E, typename Func, bool Shared>
class yaclib::detail::PromiseCore< V, E, Func, Shared >

Definition at line 16 of file promise_core.hpp.

Member Typedef Documentation

◆ Base

template<typename V , typename E , typename Func , bool Shared>
using yaclib::detail::PromiseCore< V, E, Func, Shared >::Base = std::conditional_t<Shared, SharedCore<V, E>, UniqueCore<V, E> >

Definition at line 25 of file promise_core.hpp.

Constructor & Destructor Documentation

◆ PromiseCore()

template<typename V , typename E , typename Func , bool Shared>
yaclib::detail::PromiseCore< V, E, Func, Shared >::PromiseCore ( Func &&  f)
inlineexplicit

Definition at line 27 of file promise_core.hpp.


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