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::shared_future::shared_future(3) C++ Standard Libary std::shared_future::shared_future(3)

std::shared_future::shared_future - std::shared_future::shared_future


shared_future() noexcept; (1) (since C++11)
shared_future( const shared_future& other ); (since C++11)
(until C++17)
shared_future( const shared_future& other ) (2) (since C++17)
noexcept;
shared_future( std::future<T>&& other ) noexcept; (3) (since C++11)
shared_future( shared_future&& other ) noexcept; (4) (since C++11)


Constructs a new shared_future.


1) Default constructor. Constructs an empty shared future, that doesn't refer to a
shared state, that is valid() == false.
2) Constructs a shared future that refers to the same shared state, if any, as
other.
3-4) Transfers the shared state held by other to *this. After the construction,
other.valid() == false, and this->valid() returns the same value as other.valid()
would have returned before the construction.


other - another future object to initialize with

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.