Talk:cpp/thread/promise/~promise
From cppreference.com
Regarding " ... releases it." and "... makes the shared state ready and releases it."
It's basically correct, but may be a misleading at this point as "release" is not "destroy". So an associated future can still pick up the result at a later point in time.
The std::promise page is a bit clearer on it:
"release: the promise gives up its reference to the shared state. If this was the last such reference, the shared state is destroyed. ..."
2001:16B8:3FC4:F900:9150:2C86:DA53:96C1 06:28, 11 August 2020 (PDT)