std::experimental::promise(libraryfundamentalsTS) (3) - Linux Manuals
std::experimental::promise(libraryfundamentalsTS): std::experimental::promise(libraryfundamentalsTS)
Command to display std::experimental::promise(libraryfundamentalsTS)
manual in Linux: $ man 3 std::experimental::promise(libraryfundamentalsTS)
NAME
std::experimental::promise(libraryfundamentalsTS) - std::experimental::promise(libraryfundamentalsTS)
Synopsis
Defined in header <experimental/future>
template< class R > class promise; (1) (library fundamentals TS)
template< class R > class promise<R&>; (2) (library fundamentals TS)
template<> class promise<void>; (3) (library fundamentals TS)
std::experimental::fundamentals_v1::promise (and std::experimental::fundamentals_v2::promise) is a modified version of std::promise provided by the library fundamentals TS with support for type-erased allocators.
Member types
Member type Definition
allocator_type std::experimental::erased_type
Member functions
constructs the promise object
constructor (public member function)
retrieves a pointer to the memory resource used by this object to allocate memory
get_memory_resource (public member function)
Non-member function
specializes the swap algorithm
std::experimental::swap(std::experimental::promise) (function template)
Helper classes
specializes the std::uses_allocator type trait
std::uses_allocator<std::experimental::promise> (class template specialization)
Members identical to std::promise
Member functions
destructs the promise object
destructor (public member function of std::promise<R>)
assigns the shared state
operator= (public member function of std::promise<R>)
swaps two promise objects
swap (public member function of std::promise<R>)
Getting the result
returns a future associated with the promised result
get_future (public member function of std::promise<R>)
Setting the result
sets the result to specific value
set_value (public member function of std::promise<R>)
sets the result to specific value while delivering the notification only at thread exit
set_value_at_thread_exit (public member function of std::promise<R>)
sets the result to indicate an exception
set_exception (public member function of std::promise<R>)
sets the result to indicate an exception while delivering the notification only at thread exit
set_exception_at_thread_exit (public member function of std::promise<R>)
Pages related to std::experimental::promise(libraryfundamentalsTS)
- std::experimental::promise(concurrencyTS) (3) - std::experimental::promise(concurrencyTS)
- std::experimental::promise<R>::get_memory_resource (3) - std::experimental::promise<R>::get_memory_resource
- std::experimental::promise<R>::promise(libraryfundamentalsTS) (3) - std::experimental::promise<R>::promise(libraryfundamentalsTS)
- std::experimental::propagate_const (3) - std::experimental::propagate_const
- std::experimental::propagate_const<T>::get (3) - std::experimental::propagate_const<T>::get
- std::experimental::propagate_const<T>::operator*,std::experimental::propagate_const<T>::operator-> (3) - std::experimental::propagate_const<T>::operator*,std::experimental::propagate_const<T>::operator->
- std::experimental::propagate_const<T>::operator= (3) - std::experimental::propagate_const<T>::operator=
- std::experimental::propagate_const<T>::operatorbool (3) - std::experimental::propagate_const<T>::operatorbool
- std::experimental::propagate_const<T>::operatorelement_type*, (3) - std::experimental::propagate_const<T>::operatorelement_type*,
- std::experimental::propagate_const<T>::operatorelement_type*,std::experimental::propagate_const<T>::operatorconstelement_type* (3) - std::experimental::propagate_const<T>::operatorelement_type*,std::experimental::propagate_const<T>::operatorconstelement_type*
- std::experimental::propagate_const<T>::propagate_const (3) - std::experimental::propagate_const<T>::propagate_const
- std::experimental::propagate_const<T>::swap (3) - std::experimental::propagate_const<T>::swap
- std::experimental::packaged_task(concurrencyTS) (3) - std::experimental::packaged_task(concurrencyTS)
- std::experimental::packaged_task(libraryfundamentalsTS) (3) - std::experimental::packaged_task(libraryfundamentalsTS)
- std::experimental::packaged_task<R(Args...)>::get_memory_resource (3) - std::experimental::packaged_task<R(Args...)>::get_memory_resource
- std::experimental::packaged_task<R(Args...)>::packaged_task(libraryfundamentalsTS) (3) - std::experimental::packaged_task<R(Args...)>::packaged_task(libraryfundamentalsTS)
- std::experimental::parallel::is_execution_policy (3) - std::experimental::parallel::is_execution_policy
- std::experimental::parallel::reduce (3) - std::experimental::parallel::reduce
- std::experimental::parallel::seq,std::experimental::parallel::par, (3) - std::experimental::parallel::seq,std::experimental::parallel::par,
- std::experimental::parallel::seq,std::experimental::parallel::par,std::experimental::parallel::par_vec (3) - std::experimental::parallel::seq,std::experimental::parallel::par,std::experimental::parallel::par_vec
- std::experimental::parallel::sequential_execution_policy, (3) - std::experimental::parallel::sequential_execution_policy,
- std::experimental::parallel::transform_reduce (3) - std::experimental::parallel::transform_reduce
- std::experimental::pmr::get_default_resource (3) - std::experimental::pmr::get_default_resource
- std::experimental::pmr::memory_resource (3) - std::experimental::pmr::memory_resource