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

#include <future.h>

Inheritance diagram for zth::impl::std_future_base< T >:
zth::impl::std_shared_future_base< T >

Public Types

using base = impl::std_shared_future_base< T >
 
using value_type = typename base::value_type
 
- Public Types inherited from zth::impl::std_shared_future_base< T >
using value_type = T
 

Public Member Functions

 std_future_base (std_future_base const &)=delete
 
std_future_baseoperator= (std_future_base const &)=delete
 
std::shared_future< zth::type< T > > share () const noexcept
 
- Public Member Functions inherited from zth::impl::std_shared_future_base< T >
std_shared_future_baseoperator= (std_shared_future_base &&other) noexcept=default
 
std_shared_future_baseoperator= (SharedPointer< Future_type > &&other) noexcept
 
std_shared_future_baseoperator= (SharedReference< Future_type > &&other) noexcept
 
std_shared_future_baseoperator= (std_shared_future_base const &other) noexcept=default
 
std_shared_future_baseoperator= (SharedPointer< Future_type > const &other) noexcept
 
std_shared_future_baseoperator= (SharedReference< Future_type > const &other) noexcept
 
bool valid () const noexcept
 
void wait () const
 
template<class Rep , class Period >
std::future_status wait_for (std::chrono::duration< Rep, Period > const &timeout_duration) const
 
template<class Clock , class Duration >
std::future_status wait_until (const std::chrono::time_point< Clock, Duration > &timeout_time) const
 
 operator SharedPointer< Future_type > const & () const &noexcept
 
 operator SharedPointer< Future_type > && () &&noexcept
 

Additional Inherited Members

- Protected Types inherited from zth::impl::std_shared_future_base< T >
using Future_type = zth::Future< value_type >
 
- Protected Member Functions inherited from zth::impl::std_shared_future_base< T >
 std_shared_future_base () noexcept=default
 
 std_shared_future_base (SharedPointer< Future_type > const &future) noexcept
 
 std_shared_future_base (SharedPointer< Future_type > &&future) noexcept
 
 std_shared_future_base (SharedReference< Future_type > const &future) noexcept
 
 std_shared_future_base (SharedReference< Future_type > &&future) noexcept
 
Future_typevalue () const
 
void check_valid () const
 
- Protected Attributes inherited from zth::impl::std_shared_future_base< T >
zth::SharedPointer< zth::Future< T > > m_future
 

Detailed Description

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

Definition at line 214 of file future.h.

Member Typedef Documentation

◆ base

template<typename T >
using zth::impl::std_future_base< T >::base = impl::std_shared_future_base<T>

Definition at line 216 of file future.h.

◆ value_type

template<typename T >
using zth::impl::std_future_base< T >::value_type = typename base::value_type

Definition at line 217 of file future.h.

Constructor & Destructor Documentation

◆ std_future_base()

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

Member Function Documentation

◆ operator=()

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

◆ share()

template<typename T >
std::shared_future< zth::type< T > > zth::impl::std_future_base< T >::share ( ) const
inlinenoexcept

Definition at line 227 of file future.h.


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