stdsharedfutureT
stdsharedfutureT is a C++ template class defined in the `<future>` header that represents a shared asynchronous state. It is a type of `future` that can be retrieved by multiple threads concurrently. Unlike a regular `std::future`, which can only be retrieved once, a `std::shared_future` can be accessed multiple times, allowing several threads to wait for the same asynchronous operation to complete and retrieve its result.
The shared state is set by a `std::promise` or `std::packaged_task`. When the promise is fulfilled or the
To obtain a `std::shared_future`, one typically calls the `.share()` method on a `std::future` object. This creates
Key operations on `std::shared_futureT` include `.get()`, which retrieves the result or exception from the shared state.