std::future_status
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Concurrency support library 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
(C++11)
(C++20)
(C++11)
(C++11)
(C++20)
(C++26)
(C++26)
(C++20)
(C++26)
  (C++20)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
  (C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)(C++20)
(C++11)
future_status
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)
(C++11)(deprecated in C++26)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++11)(C++11)
(C++26)(C++26)
(C++26)(C++26)
(C++11)
(C++20)(C++20)
(C++20)
(C++20)
(C++11)(C++11)
(C++11)(C++11)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
Defined in header 
 
 
<future> 
 enum class future_status {
 
 (since C++11) 
    ready,
    timeout,
    deferred
Specifies state of a future as returned by wait_for and wait_until functions of std::future  and std::shared_future .
[edit] Constants
 Enumerator
 Meaning
deferred
 the shared state contains a deferred function, so the result will be computed only when explicitly requested
ready
 the shared state is ready
timeout
 the shared state did not become ready before specified timeout duration has passed
[edit] See also
 
 waits for the result, returns if it is not available for the specified timeout duration 
(public member function of
(public member function of
std::future<T>) [edit] 
 
 waits for the result, returns if it is not available for the specified timeout duration 
(public member function of
(public member function of
std::shared_future<T>) [edit] 
 
 waits for the result, returns if it is not available until specified time point has been reached 
(public member function of
(public member function of
std::future<T>) [edit] 
 
 waits for the result, returns if it is not available until specified time point has been reached 
(public member function of
(public member function of
std::shared_future<T>) [edit]