Zth (libzth)
Loading...
Searching...
No Matches
zth::impl::std_promise_base< T > Class Template Reference

#include <future.h>

Public Types

using value_type = T
 
using Future_type = zth::Future< value_type >
 

Public Member Functions

std_promise_baseoperator= (std_promise_base &&other) noexcept
 
 std_promise_base (std_promise_base const &)=delete
 
std_promise_baseoperator= (std_promise_base const &)=delete
 
void swap (std_promise_base &other) noexcept
 
std::future< zth::type< T > > get_future ()
 
template<typename U >
void set_value (U &&value)
 
void set_value ()
 
void set_exception (std::exception_ptr exception)
 

Protected Member Functions

 std_promise_base ()
 
 std_promise_base (SharedPointer< Future_type > future) noexcept
 
 std_promise_base (std_promise_base &&other) noexcept
 
void check_valid () const
 
void check_not_satisfied () const
 

Detailed Description

template<typename T>
class zth::impl::std_promise_base< T >

Definition at line 134 of file future.h.

Member Typedef Documentation

◆ Future_type

template<typename T >
using zth::impl::std_promise_base< T >::Future_type = zth::Future<value_type>

Definition at line 137 of file future.h.

◆ value_type

template<typename T >
using zth::impl::std_promise_base< T >::value_type = T

Definition at line 136 of file future.h.

Constructor & Destructor Documentation

◆ std_promise_base() [1/4]

template<typename T >
zth::impl::std_promise_base< T >::std_promise_base ( )
inlineprotected

Definition at line 140 of file future.h.

◆ std_promise_base() [2/4]

template<typename T >
zth::impl::std_promise_base< T >::std_promise_base ( SharedPointer< Future_type future)
inlineexplicitprotectednoexcept

Definition at line 144 of file future.h.

◆ std_promise_base() [3/4]

template<typename T >
zth::impl::std_promise_base< T >::std_promise_base ( std_promise_base< T > &&  other)
inlineprotectednoexcept

Definition at line 148 of file future.h.

◆ std_promise_base() [4/4]

template<typename T >
zth::impl::std_promise_base< T >::std_promise_base ( std_promise_base< T > const &  )
delete

Member Function Documentation

◆ check_not_satisfied()

template<typename T >
void zth::impl::std_promise_base< T >::check_not_satisfied ( ) const
inlineprotected

Definition at line 205 of file future.h.

◆ check_valid()

template<typename T >
void zth::impl::std_promise_base< T >::check_valid ( ) const
inlineprotected

Definition at line 199 of file future.h.

◆ get_future()

template<typename T >
std::future< zth::type< T > > zth::impl::std_promise_base< T >::get_future ( )
inline

Definition at line 168 of file future.h.

◆ operator=() [1/2]

template<typename T >
std_promise_base & zth::impl::std_promise_base< T >::operator= ( std_promise_base< T > &&  other)
inlinenoexcept

Definition at line 154 of file future.h.

◆ operator=() [2/2]

template<typename T >
std_promise_base & zth::impl::std_promise_base< T >::operator= ( std_promise_base< T > const &  )
delete

◆ set_exception()

template<typename T >
void zth::impl::std_promise_base< T >::set_exception ( std::exception_ptr  exception)
inline

Definition at line 192 of file future.h.

◆ set_value() [1/2]

template<typename T >
void zth::impl::std_promise_base< T >::set_value ( )
inline

Definition at line 186 of file future.h.

◆ set_value() [2/2]

template<typename T >
template<typename U >
void zth::impl::std_promise_base< T >::set_value ( U &&  value)
inline

Definition at line 180 of file future.h.

◆ swap()

template<typename T >
void zth::impl::std_promise_base< T >::swap ( std_promise_base< T > &  other)
inlinenoexcept

Definition at line 163 of file future.h.


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