Lines Matching refs:future
2 //===--------------------------- future -----------------------------------===//
14 future synopsis
74 future<R> get_future();
104 future<R&> get_future();
132 future<void> get_future();
149 class future
152 future() noexcept;
153 future(future&&) noexcept;
154 future(const future& rhs) = delete;
155 ~future();
156 future& operator=(const future& rhs) = delete;
157 future& operator=(future&&) noexcept;
176 class future<R&>
179 future() noexcept;
180 future(future&&) noexcept;
181 future(const future& rhs) = delete;
182 ~future();
183 future& operator=(const future& rhs) = delete;
184 future& operator=(future&&) noexcept;
203 class future<void>
206 future() noexcept;
207 future(future&&) noexcept;
208 future(const future& rhs) = delete;
209 ~future();
210 future& operator=(const future& rhs) = delete;
211 future& operator=(future&&) noexcept;
235 shared_future(future<R>&&) noexcept;
262 shared_future(future<R&>&&) noexcept;
289 shared_future(future<void>&&) noexcept;
311 future<typename result_of<typename decay<F>::type(typename decay<Args>::type...)>::type>
315 future<typename result_of<typename decay<F>::type(typename decay<Args>::type...)>::type>
346 future<R> get_future();
379 #error <future> is not supported on this single threaded system
1019 // future
1021 template <class _Rp> class _LIBCPP_TEMPLATE_VIS future;
1024 _LIBCPP_INLINE_VISIBILITY future<_Rp>
1028 _LIBCPP_INLINE_VISIBILITY future<_Rp>
1032 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE future
1036 explicit future(__assoc_state<_Rp>* __state);
1042 friend future<_R1> __make_deferred_assoc_state(_Fp&& __f);
1044 friend future<_R1> __make_async_assoc_state(_Fp&& __f);
1048 future() _NOEXCEPT : __state_(nullptr) {}
1050 future(future&& __rhs) _NOEXCEPT
1052 future(const future&) = delete;
1053 future& operator=(const future&) = delete;
1055 future& operator=(future&& __rhs) _NOEXCEPT
1057 future(_VSTD::move(__rhs)).swap(*this);
1061 ~future();
1069 void swap(future& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1090 future<_Rp>::future(__assoc_state<_Rp>* __state)
1102 future<_Rp>::~future()
1110 future<_Rp>::get()
1119 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE future<_Rp&>
1123 explicit future(__assoc_state<_Rp&>* __state);
1129 friend future<_R1> __make_deferred_assoc_state(_Fp&& __f);
1131 friend future<_R1> __make_async_assoc_state(_Fp&& __f);
1135 future() _NOEXCEPT : __state_(nullptr) {}
1137 future(future&& __rhs) _NOEXCEPT
1139 future(const future&) = delete;
1140 future& operator=(const future&) = delete;
1142 future& operator=(future&& __rhs) _NOEXCEPT
1144 future(_VSTD::move(__rhs)).swap(*this);
1148 ~future();
1156 void swap(future& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1177 future<_Rp&>::future(__assoc_state<_Rp&>* __state)
1184 future<_Rp&>::~future()
1192 future<_Rp&>::get()
1201 class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_FUTURE future<void>
1205 explicit future(__assoc_sub_state* __state);
1211 friend future<_R1> __make_deferred_assoc_state(_Fp&& __f);
1213 friend future<_R1> __make_async_assoc_state(_Fp&& __f);
1217 future() _NOEXCEPT : __state_(nullptr) {}
1219 future(future&& __rhs) _NOEXCEPT
1221 future(const future&) = delete;
1222 future& operator=(const future&) = delete;
1224 future& operator=(future&& __rhs) _NOEXCEPT
1226 future(_VSTD::move(__rhs)).swap(*this);
1230 ~future();
1238 void swap(future& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1261 swap(future<_Rp>& __x, future<_Rp>& __y) _NOEXCEPT
1302 future<_Rp> get_future();
1348 future<_Rp>
1353 return future<_Rp>(__state_);
1447 future<_Rp&> get_future();
1491 future<_Rp&>
1496 return future<_Rp&>(__state_);
1573 future<void> get_future();
1935 future<result_type> get_future() {return __p_.get_future();}
2064 future<result_type> get_future() {return __p_.get_future();}
2141 _LIBCPP_INLINE_VISIBILITY future<_Rp>
2146 return future<_Rp>(__h.get());
2150 _LIBCPP_INLINE_VISIBILITY future<_Rp>
2156 return future<_Rp>(__h.get());
2195 future<typename __invoke_of<typename decay<_Fp>::type, typename decay<_Args>::type...>::type>
2216 return future<_Rp>{};
2221 future<typename __invoke_of<typename decay<_Fp>::type, typename decay<_Args>::type...>::type>
2244 shared_future(future<_Rp>&& __f) _NOEXCEPT : __state_(__f.__state_)
2314 shared_future(future<_Rp&>&& __f) _NOEXCEPT : __state_(__f.__state_)
2384 shared_future(future<void>&& __f) _NOEXCEPT : __state_(__f.__state_)
2434 future<_Rp>::share() _NOEXCEPT
2442 future<_Rp&>::share() _NOEXCEPT
2449 future<void>::share() _NOEXCEPT