Template:cpp/thread/future/valid

Checks if the future refers to a shared state.

The behavior is undefined if any member function other than the destructor, the move-assignment operator, or is called on a  that does not refer to shared state (although implementations are encouraged to throw std indicating  in this case). It is valid to move from a  object for which  is.

Parameters
(none)

Return value
if *this refers to a shared state, otherwise.