std::shared...hared_future(3)
π NAME π
okay so bestie, this is the std::shared...hared_future(3) page from the C++ Standard Libary β yes, that spelling is in the original, iykyk π
std::shared_future::shared_future β std::shared_future::shared_future
π¦ Synopsis π¦
constructing a shiny new shared_future, no cap:
shared_future() noexcept; (1) (since C++11)
shared_future( const shared_future& other ); (2) (since C++11) (until C++17)
shared_future( const shared_future& other ) noexcept; (2) (since C++17)
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 isvalid() == false.(2)β Constructs a shared future that refers to the same shared state, if any, asother.(3)and(4)(aka the3,4)duo) β Transfers the shared state held byotherto*this. After the construction,other.valid() == false, andthis->valid()returns the same value asother.valid()would have returned before the construction.
π Parameters π
otherβ another future object to initialize with
okay bye bestie π«Ά β source/version: http://cppreference.com, 2024.06.10; footer tag: std::shared...hared_future(3). mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms