libycxx

class template

std::future

Header
<future>
Scope
std
cppreference
std::future

Synopsis

template<class R>
class future;

Member functions

NameDeclaration
futureconstructor · 3 overloadsfuture() +2 more
~futuredestructor~future()
operator=operator · 2 overloadsfuture& operator=(const future& other) +1 more
getmember functionR get()
sharemember functionshared_future<R> share()
validmember functionbool valid() const
waitmember functionvoid wait() const
wait_formember function templatefuture_status wait_for(const chrono::duration<Rep, Period>& rel_time) const
wait_untilmember function templatefuture_status wait_until(const chrono::time_point<Clock, Duration>& abs_time) const