std::future::valid

From Cppreference

Jump to: navigation, search
bool valid() const;
(since C++11)

Checks if the result is available and not yet retrieved using get().

Contents

[edit] Parameters

(none)

[edit] Return value

true if the result is available, 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)