hpx::promise#

Defined in header hpx/future.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

template<typename R, typename Allocator>
struct uses_allocator<hpx::promise<R>, Allocator> : public true_type#
namespace hpx

Top level HPX namespace.

template<typename R>
class promise
#include <promise.hpp>
template<typename R>
class promise<R&> : public hpx::detail::promise_base<R&>#

Public Functions

promise() = default#
template<typename Allocator>
inline promise(std::allocator_arg_t, Allocator const &a)#
promise(promise &&other) noexcept = default#
promise(promise const &other) = delete#
~promise() = default#
promise &operator=(promise &&other) noexcept = default#
promise &operator=(promise const &other) = delete#
inline void swap(promise &other) noexcept#
inline void set_value(R &r)#

Private Types

using base_type = detail::promise_base<R&>#
template<>
class promise<void> : public hpx::detail::promise_base<void>#

Public Functions

promise() = default#
template<typename Allocator>
inline promise(std::allocator_arg_t, Allocator const &a)#
promise(promise &&other) noexcept = default#
promise(promise const &other) noexcept = delete#
~promise() = default#
promise &operator=(promise &&other) noexcept = default#
promise &operator=(promise const &other) noexcept = delete#
inline void swap(promise &other) noexcept#
inline void set_value()#

Private Types

using base_type = detail::promise_base<void>#
namespace std

Functions

template<typename R> HPX_CXX_EXPORT void swap (hpx::promise< R > &x, hpx::promise< R > &y) noexcept
template<typename R, typename Allocator> promise< R >, Allocator > : public true_type