|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
promise::promise | ||||
| Getting the result | ||||
| Setting the result | ||||
| Non-member Functions | ||||
| Helper Classes | ||||
promise(); | (1) | (since C++11) |
template<class Alloc> promise(std::allocator_arg_t,const Alloc& alloc); | (2) | (since C++11) |
promise( promise&& other)noexcept; | (3) | (since C++11) |
promise(const promise& other)= delete; | (4) | (since C++11) |
Constructs apromise object.
Alloc must meet the requirements ofAllocator.promise is not copyable.| alloc | - | allocator to use to allocate the shared state |
| other | - | anotherpromise to acquire the state from |
| This section is incomplete Reason: no example |