GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::promise::promise(3) C++ Standard Libary std::promise::promise(3)

std::promise::promise - std::promise::promise


promise(); (1) (since C++11)
template< class Alloc > (2) (since C++11)
promise( std::allocator_arg_t, const Alloc& alloc );
promise( promise&& other ) noexcept; (3) (since C++11)
promise( const promise& other ) = delete; (4) (since C++11)


Constructs a promise object.


1) Default constructor. Constructs the promise with an empty shared state.
2) Constructs the promise with an empty shared state. The shared state is allocated
using alloc. Alloc must meet the requirements of Allocator.
3) Move constructor. Constructs the promise with the shared state of other using
move semantics. After construction, other has no shared state.
4) promise is not copyable.


alloc - allocator to use to allocate the shared state
other - another promise to acquire the state from


1-2) May throw implementation-defined exceptions.


This section is incomplete
Reason: no example

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.