Namespaces
Variants
Views
Actions

std::future::valid

From cppreference.com
bool valid() const;
(since C++11)

Checks if the future has shared state with a promise.

Contents

[edit] Parameters

(none)

[edit] Return value

true if *this refers to a shared state, otherwise false.

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[edit] Example

[edit] See also

waits for the result to become available
(public member function) [edit]