class template
std::future
- Header
<future>- Scope
std- cppreference
- std::future
Synopsis
template<class R>
class future;Member functions
| Name | Declaration |
|---|---|
futureconstructor · 3 overloads | future() +2 more |
~futuredestructor | ~future() |
operator=operator · 2 overloads | future& operator=(const future& other) +1 more |
getmember function | R get() |
sharemember function | shared_future<R> share() |
validmember function | bool valid() const |
waitmember function | void wait() const |
wait_formember function template | future_status wait_for(const chrono::duration<Rep, Period>& rel_time) const |
wait_untilmember function template | future_status wait_until(const chrono::time_point<Clock, Duration>& abs_time) const |