std::shared...hared_future(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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. (1) β€” Default constructor. Constructs an empty shared future, that doesn't refer to a shared state, that is valid() == false.
  2. (2) β€” Constructs a shared future that refers to the same shared state, if any, as other.
  3. (3) and (4) (aka the 3,4) duo) β€” 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.

πŸŽ€ 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