|generic template (1)|
const T& get() const;
|reference specialization (2)|
R& shared_future<R&>::get() const; // when T is a reference type (R&)
|void specialization (3)|
void shared_future<void>::get() const; // when T is void
voidspecialization (3) does not return any value, but still waits for the shared state to become ready before returning/throwing.