hpx/futures/future.hpp¶
See Public API for a list of names and headers that are part of the public HPX API.
Defines
-
HPX_MAKE_EXCEPTIONAL_FUTURE
(T, errorcode, f, msg)¶
-
namespace
hpx
Functions
-
template<typename
R
, typenameU
, typenameConv
>
hpx::future<R>make_future
(hpx::future<U> &&f, Conv &&conv)¶
-
template<typename
T
, typenameAllocator
, typename ...Ts
>
std::enable_if_t<std::is_constructible_v<T, Ts&&...> || std::is_void_v<T>, future<T>>make_ready_future_alloc
(Allocator const &a, Ts&&... ts)¶
-
template<typename
T
, typename ...Ts
>
std::enable_if_t<std::is_constructible_v<T, Ts&&...> || std::is_void_v<T>, future<T>>make_ready_future
(Ts&&... ts)¶
-
template<int
DeductionGuard
= 0, typenameAllocator
, typenameT
>
future<hpx::util::decay_unwrap_t<T>>make_ready_future_alloc
(Allocator const &a, T &&init)¶
-
template<int
DeductionGuard
= 0, typenameT
>
future<hpx::util::decay_unwrap_t<T>>make_ready_future
(T &&init)¶
-
template<int
DeductionGuard
= 0, typenameT
>
future<hpx::util::decay_unwrap_t<T>>make_ready_future_at
(hpx::chrono::steady_time_point const &abs_time, T &&init)¶
-
template<int
DeductionGuard
= 0, typenameT
>
future<hpx::util::decay_unwrap_t<T>>make_ready_future_after
(hpx::chrono::steady_duration const &rel_time, T &&init)¶
-
future<void>
make_ready_future
()¶
-
future<void>
make_ready_future_at
(hpx::chrono::steady_time_point const &abs_time)¶
-
future<void>
make_ready_future_after
(hpx::chrono::steady_duration const &rel_time)¶
-
template<typename
R
>
classfuture
: public hpx::lcos::detail::future_base<future<R>, R>¶ -
Public Functions
-
constexpr
future
()¶
-
template<typename
T
>future
(future<T> &&other, std::enable_if_t<std::is_void_v<R> && !traits::is_future_v<T>, T>* = nullptr)¶
-
~future
()¶
-
future &
operator=
(future &&other)¶
-
hpx::traits::future_traits<future>::result_type
get
(error_code &ec)¶
-
template<typename
F
>
decltype(auto)then
(F &&f, error_code &ec = throws)¶
-
template<typename
T0
, typenameF
>
decltype(auto)then
(T0 &&t0, F &&f, error_code &ec = throws)¶
-
template<typename
Allocator
, typenameF
>
autothen_alloc
(Allocator const &alloc, F &&f, error_code &ec = throws)¶
Private Functions
Friends
-
friend
hpx::hpx::traits::future_access
-
constexpr
Public Types
Public Functions
Private Types
Private Functions
Friends
-
friend
hpx::hpx::traits::future_access
-
friend
-
namespace
lcos
Functions
-
template<typename R, typename U>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_future is deprecated. Use hpx::make_future instead.")
-
template<typename R, typename U, typename Conv>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_future is deprecated. Use hpx::make_future instead.")
-
template<typename T, typename Allocator, typename... Ts>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future_alloc is deprecated. Use " "hpx::make_ready_future_alloc instead.")
-
template<typename T, typename... Ts>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future is deprecated. Use " "hpx::make_ready_future instead.")
-
template<typename T>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_exceptional_future is deprecated. Use " "hpx::make_exceptional_future instead.")
-
template<typename T, typename E>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_exceptional_future is deprecated. Use " "hpx::make_exceptional_future instead.")
-
template<int DeductionGuard = 0, typename T>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future_at is deprecated. Use " "hpx::make_ready_future_at instead.")
-
template<int DeductionGuard = 0, typename T>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future_after is deprecated. Use " "hpx::make_ready_future_after instead.")
-
template<typename Allocator>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future_alloc is deprecated. Use " "hpx::make_ready_future_alloc instead.")
-
template<typename T>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future is deprecated. Use " "hpx::make_ready_future instead.")
-
template<typename T>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future_at is deprecated. Use " "hpx::make_ready_future_at instead.")
-
template<typename T>hpx::lcos::HPX_DEPRECATED_V(1, 8, "hpx::lcos::make_ready_future_after is deprecated. Use " "hpx::make_ready_future_after instead.")
-
-
namespace
serialization
-
template<typename