#include <libzth/macros.h>
#include <libzth/sync.h>
#include <libzth/time.h>
#include <future>
#include <stdexcept>
#include <type_traits>
Go to the source code of this file.
|
| template<typename Func , typename... Args> |
| zth::future< zth::impl::invoke_result< Func, Args... > > | zth::async (Func &&f, Args &&... args) |
| |
| template<typename Func , typename... Args> |
| zth::future< zth::impl::invoke_result< Func, Args... > > | zth::async (zth::launch policy, Func &&f, Args &&... args) |
| |
| template<typename Func , typename... Args> |
| zth::future< zth::impl::invoke_result< Func, Args... > > | std::async (zth::launch policy, Func &&f, Args &&... args) |
| |
◆ ZTH_FUTURE_COPY
| #define ZTH_FUTURE_COPY |
( |
|
future_class_type | ) |
|
Value: future_class_type(future_class_type const& other) noexcept = default; \
\
future_class_type& operator=(future_class_type const& other) noexcept = default; \
\
{ \
this->base::operator=(other); \
return *this; \
} \
\
{ \
this->base::operator=(other); \
return *this; \
}
Definition at line 140 of file future.h.
◆ ZTH_FUTURE_CTORS
| #define ZTH_FUTURE_CTORS |
( |
|
future_class_type | ) |
|
Value: using Future_type = typename base::Future_type; \
\
future_class_type() noexcept = default; \
\
future_class_type(
zth::SharedPointer<Future_type> const& f) noexcept \
: base{f} \
{} \
\
: base{f} \
{}
Definition at line 72 of file future.h.
◆ ZTH_FUTURE_MOVE
| #define ZTH_FUTURE_MOVE |
( |
|
future_class_type | ) |
|
Value: future_class_type(future_class_type&& other) noexcept = default; \
\
: base{std::move(f)} \
{} \
\
: base{std::move(f)} \
{} \
\
future_class_type& operator=(future_class_type&& other) noexcept = default; \
\
{ \
this->base::operator=(std::move(other)); \
return *this; \
} \
\
{ \
this->base::operator=(std::move(other)); \
return *this; \
}
Definition at line 101 of file future.h.