std::experimental::promise(libraryfundamentalsTS) (3) - Linux Manuals
std::experimental::promise(libraryfundamentalsTS): 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
constructor (public member function)
get_memory_resource (public member function)
Non-member function
std::experimental::swap(std::experimental::promise) (function template)
Helper classes
std::uses_allocator<std::experimental::promise> (class template specialization)
Members identical to std::promise
Member functions
destructor (public member function of std::promise<R>)
operator= (public member function of std::promise<R>)
swap (public member function of std::promise<R>)
Getting the result