YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::SharedPromise< V, E > Class Template Referencefinal

#include <shared_promise.hpp>

Public Member Functions

 SharedPromise () noexcept=default
 
 SharedPromise (const SharedPromise &other)=delete
 
SharedPromiseoperator= (const SharedPromise &other)=delete
 
 SharedPromise (SharedPromise &&other) noexcept=default
 
SharedPromiseoperator= (SharedPromise &&other) noexcept=default
 
bool Valid () const &noexcept
 
template<typename... Args>
void Set (Args &&... args) &&
 
 ~SharedPromise ()
 
 SharedPromise (detail::SharedCorePtr< V, E > core) noexcept
 Part of unsafe but internal API.
 

Detailed Description

template<typename V, typename E>
class yaclib::SharedPromise< V, E >

Definition at line 8 of file shared_promise.hpp.

Constructor & Destructor Documentation

◆ SharedPromise() [1/4]

template<typename V , typename E >
yaclib::SharedPromise< V, E >::SharedPromise ( )
defaultnoexcept

◆ SharedPromise() [2/4]

template<typename V , typename E >
yaclib::SharedPromise< V, E >::SharedPromise ( const SharedPromise< V, E > &  other)
delete

◆ SharedPromise() [3/4]

template<typename V , typename E >
yaclib::SharedPromise< V, E >::SharedPromise ( SharedPromise< V, E > &&  other)
defaultnoexcept

◆ ~SharedPromise()

template<typename V , typename E >
yaclib::SharedPromise< V, E >::~SharedPromise ( )
inline

◆ SharedPromise() [4/4]

template<typename V , typename E >
yaclib::SharedPromise< V, E >::SharedPromise ( detail::SharedCorePtr< V, E core)
inlineexplicitnoexcept

Part of unsafe but internal API.

Definition at line 47 of file shared_promise.hpp.

Member Function Documentation

◆ operator=() [1/2]

template<typename V , typename E >
SharedPromise & yaclib::SharedPromise< V, E >::operator= ( const SharedPromise< V, E > &  other)
delete

◆ operator=() [2/2]

template<typename V , typename E >
SharedPromise & yaclib::SharedPromise< V, E >::operator= ( SharedPromise< V, E > &&  other)
defaultnoexcept

◆ Set()

template<typename V , typename E >
template<typename... Args>
void yaclib::SharedPromise< V, E >::Set ( Args &&...  args) &&
inline

◆ Valid()

template<typename V , typename E >
bool yaclib::SharedPromise< V, E >::Valid ( ) const &
inlinenoexcept

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