libcoro  1.0
Coroutine support library for C++20

◆ has_value()

template<typename T >
bool coro::future< T >::has_value ( ) const
inline

Determines, whether future has a value.

Return values
truefuture has value or exception
falsefuture has no value nor exception
Note
future must be resolved otherwise undefined (use wait() )

Definition at line 779 of file future.h.