aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Public Types | Public Member Functions | Friends | List of all members
aegis::future< T > Class Template Reference

future<T> More...

#include <futures.hpp>

Classes

struct  finally_body
 
struct  finally_body< Func, false >
 
struct  finally_body< Func, true >
 

Public Types

using value_type = T
 
using promise_type = promise< T >
 

Public Member Functions

 future (future &&x) noexcept
 
 future (const future &)=delete
 
futureoperator= (future &&x) noexcept
 
void operator= (const future &)=delete
 
get ()
 
std::exception_ptr get_exception ()
 
void wait () const noexcept
 
bool available () const noexcept
 
bool failed () const noexcept
 
template<typename Func , typename Result = result_of_t<Func, T>>
add_future_t< Result > then (Func &&func) noexcept
 
template<typename Func , typename Result = std::result_of_t<Func(future)>>
add_future_t< Result > then_wrapped (Func &&func) noexcept
 
void forward_to (promise< T > &&pr) noexcept
 
template<typename Func >
future< T > finally (Func &&func) noexcept
 
template<typename Func >
future< T > handle_exception (Func &&func) noexcept
 
void ignore_ready_future () noexcept
 

Friends

template<typename U >
class shared_future
 
template<typename U >
class promise
 
template<typename U , typename... A>
future< U > make_ready_future (A &&...value)
 make_ready_future<T, ...A>()
 
template<typename U >
future< U > make_ready_future (U &&value)
 
template<typename U >
future< U > make_exception_future (std::exception_ptr ex) noexcept
 make_exception_future<T>()
 

Detailed Description

template<class T>
class aegis::future< T >

future<T>


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