Lines Matching refs:_Rp
625 template <class _Rp>
630 typedef typename aligned_storage<sizeof(_Rp), alignment_of<_Rp>::value>::type _Up;
643 _Rp move();
644 typename add_lvalue_reference<_Rp>::type copy();
647 template <class _Rp>
649 __assoc_state<_Rp>::__on_zero_shared() _NOEXCEPT
652 reinterpret_cast<_Rp*>(&__value_)->~_Rp();
656 template <class _Rp>
660 __assoc_state<_Rp>::set_value(_Arg&& __arg)
665 ::new ((void*)&__value_) _Rp(_VSTD::forward<_Arg>(__arg));
670 template <class _Rp>
673 __assoc_state<_Rp>::set_value_at_thread_exit(_Arg&& __arg)
678 ::new ((void*)&__value_) _Rp(_VSTD::forward<_Arg>(__arg));
683 template <class _Rp>
684 _Rp
685 __assoc_state<_Rp>::move()
691 return _VSTD::move(*reinterpret_cast<_Rp*>(&__value_));
694 template <class _Rp>
695 typename add_lvalue_reference<_Rp>::type
696 __assoc_state<_Rp>::copy()
702 return *reinterpret_cast<_Rp*>(&__value_);
705 template <class _Rp>
706 class _LIBCPP_AVAILABILITY_FUTURE __assoc_state<_Rp&>
710 typedef _Rp* _Up;
717 void set_value(_Rp& __arg);
718 void set_value_at_thread_exit(_Rp& __arg);
720 _Rp& copy();
723 template <class _Rp>
725 __assoc_state<_Rp&>::__on_zero_shared() _NOEXCEPT
730 template <class _Rp>
732 __assoc_state<_Rp&>::set_value(_Rp& __arg)
742 template <class _Rp>
744 __assoc_state<_Rp&>::set_value_at_thread_exit(_Rp& __arg)
754 template <class _Rp>
755 _Rp&
756 __assoc_state<_Rp&>::copy()
765 template <class _Rp, class _Alloc>
767 : public __assoc_state<_Rp>
769 typedef __assoc_state<_Rp> base;
779 template <class _Rp, class _Alloc>
781 __assoc_state_alloc<_Rp, _Alloc>::__on_zero_shared() _NOEXCEPT
784 reinterpret_cast<_Rp*>(_VSTD::addressof(this->__value_))->~_Rp();
793 template <class _Rp, class _Alloc>
794 class _LIBCPP_AVAILABILITY_FUTURE __assoc_state_alloc<_Rp&, _Alloc>
795 : public __assoc_state<_Rp&>
797 typedef __assoc_state<_Rp&> base;
807 template <class _Rp, class _Alloc>
809 __assoc_state_alloc<_Rp&, _Alloc>::__on_zero_shared() _NOEXCEPT
845 template <class _Rp, class _Fp>
847 : public __assoc_state<_Rp>
849 typedef __assoc_state<_Rp> base;
860 template <class _Rp, class _Fp>
862 __deferred_assoc_state<_Rp, _Fp>::__deferred_assoc_state(_Fp&& __f)
868 template <class _Rp, class _Fp>
870 __deferred_assoc_state<_Rp, _Fp>::__execute()
928 template <class _Rp, class _Fp>
930 : public __assoc_state<_Rp>
932 typedef __assoc_state<_Rp> base;
944 template <class _Rp, class _Fp>
946 __async_assoc_state<_Rp, _Fp>::__async_assoc_state(_Fp&& __f)
951 template <class _Rp, class _Fp>
953 __async_assoc_state<_Rp, _Fp>::__execute()
969 template <class _Rp, class _Fp>
971 __async_assoc_state<_Rp, _Fp>::__on_zero_shared() _NOEXCEPT
1027 template <class _Rp> class _LIBCPP_TEMPLATE_VIS promise;
1028 template <class _Rp> class _LIBCPP_TEMPLATE_VIS shared_future;
1032 template <class _Rp> class _LIBCPP_TEMPLATE_VIS future;
1034 template <class _Rp, class _Fp>
1035 _LIBCPP_INLINE_VISIBILITY future<_Rp>
1038 template <class _Rp, class _Fp>
1039 _LIBCPP_INLINE_VISIBILITY future<_Rp>
1042 template <class _Rp>
1045 __assoc_state<_Rp>* __state_;
1047 explicit future(__assoc_state<_Rp>* __state);
1074 shared_future<_Rp> share() _NOEXCEPT;
1077 _Rp get();
1100 template <class _Rp>
1101 future<_Rp>::future(__assoc_state<_Rp>* __state)
1112 template <class _Rp>
1113 future<_Rp>::~future()
1119 template <class _Rp>
1120 _Rp
1121 future<_Rp>::get()
1124 __assoc_state<_Rp>* __s = __state_;
1129 template <class _Rp>
1130 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE future<_Rp&>
1132 __assoc_state<_Rp&>* __state_;
1134 explicit future(__assoc_state<_Rp&>* __state);
1161 shared_future<_Rp&> share() _NOEXCEPT;
1164 _Rp& get();
1187 template <class _Rp>
1188 future<_Rp&>::future(__assoc_state<_Rp&>* __state)
1194 template <class _Rp>
1195 future<_Rp&>::~future()
1201 template <class _Rp>
1202 _Rp&
1203 future<_Rp&>::get()
1206 __assoc_state<_Rp&>* __s = __state_;
1269 template <class _Rp>
1272 swap(future<_Rp>& __x, future<_Rp>& __y) _NOEXCEPT
1281 template <class _Rp>
1284 __assoc_state<_Rp>* __state_;
1313 future<_Rp> get_future();
1316 void set_value(const _Rp& __r);
1317 void set_value(_Rp&& __r);
1321 void set_value_at_thread_exit(const _Rp& __r);
1322 void set_value_at_thread_exit(_Rp&& __r);
1326 template <class _Rp>
1327 promise<_Rp>::promise()
1328 : __state_(new __assoc_state<_Rp>)
1332 template <class _Rp>
1334 promise<_Rp>::promise(allocator_arg_t, const _Alloc& __a0)
1336 typedef __assoc_state_alloc<_Rp, _Alloc> _State;
1345 template <class _Rp>
1346 promise<_Rp>::~promise()
1358 template <class _Rp>
1359 future<_Rp>
1360 promise<_Rp>::get_future()
1364 return future<_Rp>(__state_);
1367 template <class _Rp>
1369 promise<_Rp>::set_value(const _Rp& __r)
1376 template <class _Rp>
1378 promise<_Rp>::set_value(_Rp&& __r)
1385 template <class _Rp>
1387 promise<_Rp>::set_exception(exception_ptr __p)
1395 template <class _Rp>
1397 promise<_Rp>::set_value_at_thread_exit(const _Rp& __r)
1404 template <class _Rp>
1406 promise<_Rp>::set_value_at_thread_exit(_Rp&& __r)
1413 template <class _Rp>
1415 promise<_Rp>::set_exception_at_thread_exit(exception_ptr __p)
1425 template <class _Rp>
1426 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE promise<_Rp&>
1428 __assoc_state<_Rp&>* __state_;
1458 future<_Rp&> get_future();
1461 void set_value(_Rp& __r);
1465 void set_value_at_thread_exit(_Rp&);
1469 template <class _Rp>
1470 promise<_Rp&>::promise()
1471 : __state_(new __assoc_state<_Rp&>)
1475 template <class _Rp>
1477 promise<_Rp&>::promise(allocator_arg_t, const _Alloc& __a0)
1479 typedef __assoc_state_alloc<_Rp&, _Alloc> _State;
1488 template <class _Rp>
1489 promise<_Rp&>::~promise()
1501 template <class _Rp>
1502 future<_Rp&>
1503 promise<_Rp&>::get_future()
1507 return future<_Rp&>(__state_);
1510 template <class _Rp>
1512 promise<_Rp&>::set_value(_Rp& __r)
1519 template <class _Rp>
1521 promise<_Rp&>::set_exception(exception_ptr __p)
1529 template <class _Rp>
1531 promise<_Rp&>::set_value_at_thread_exit(_Rp& __r)
1538 template <class _Rp>
1540 promise<_Rp&>::set_exception_at_thread_exit(exception_ptr __p)
1607 template <class _Rp>
1610 swap(promise<_Rp>& __x, promise<_Rp>& __y) _NOEXCEPT
1615 template <class _Rp, class _Alloc>
1616 struct _LIBCPP_TEMPLATE_VIS uses_allocator<promise<_Rp>, _Alloc>
1623 template<class _Rp, class ..._ArgTypes>
1624 class _LIBCPP_AVAILABILITY_FUTURE __packaged_task_base<_Rp(_ArgTypes...)>
1636 virtual _Rp operator()(_ArgTypes&& ...) = 0;
1641 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1642 class _LIBCPP_AVAILABILITY_FUTURE __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>
1643 : public __packaged_task_base<_Rp(_ArgTypes...)>
1657 virtual void __move_to(__packaged_task_base<_Rp(_ArgTypes...)>*) _NOEXCEPT;
1660 virtual _Rp operator()(_ArgTypes&& ... __args);
1663 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1665 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::__move_to(
1666 __packaged_task_base<_Rp(_ArgTypes...)>* __p) _NOEXCEPT
1671 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1673 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::destroy()
1678 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1680 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::destroy_deallocate()
1690 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1691 _Rp
1692 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::operator()(_ArgTypes&& ... __arg)
1699 template<class _Rp, class ..._ArgTypes>
1700 class _LIBCPP_AVAILABILITY_FUTURE __packaged_task_function<_Rp(_ArgTypes...)>
1702 typedef __packaged_task_base<_Rp(_ArgTypes...)> __base;
1711 typedef _Rp result_type;
1732 _Rp operator()(_ArgTypes...) const;
1735 template<class _Rp, class ..._ArgTypes>
1736 __packaged_task_function<_Rp(_ArgTypes...)>::__packaged_task_function(__packaged_task_function&& __…
1752 template<class _Rp, class ..._ArgTypes>
1754 __packaged_task_function<_Rp(_ArgTypes...)>::__packaged_task_function(_Fp&& __f)
1758 typedef __packaged_task_func<_FR, allocator<_FR>, _Rp(_ArgTypes...)> _FF;
1775 template<class _Rp, class ..._ArgTypes>
1777 __packaged_task_function<_Rp(_ArgTypes...)>::__packaged_task_function(
1782 typedef __packaged_task_func<_FR, _Alloc, _Rp(_ArgTypes...)> _FF;
1800 template<class _Rp, class ..._ArgTypes>
1801 __packaged_task_function<_Rp(_ArgTypes...)>&
1802 __packaged_task_function<_Rp(_ArgTypes...)>::operator=(__packaged_task_function&& __f) _NOEXCEPT
1824 template<class _Rp, class ..._ArgTypes>
1825 __packaged_task_function<_Rp(_ArgTypes...)>::~__packaged_task_function()
1833 template<class _Rp, class ..._ArgTypes>
1836 __packaged_task_function<_Rp(_ArgTypes...)>::swap(__packaged_task_function& __f) _NOEXCEPT
1871 template<class _Rp, class ..._ArgTypes>
1873 _Rp
1874 __packaged_task_function<_Rp(_ArgTypes...)>::operator()(_ArgTypes... __arg) const
1879 template<class _Rp, class ..._ArgTypes>
1880 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE packaged_task<_Rp(_ArgTypes...)>
1883 typedef _Rp result_type; // extension
1941 template<class _Rp, class ..._ArgTypes>
1943 packaged_task<_Rp(_ArgTypes...)>::operator()(_ArgTypes... __args)
1963 template<class _Rp, class ..._ArgTypes>
1965 packaged_task<_Rp(_ArgTypes...)>::make_ready_at_thread_exit(_ArgTypes... __args)
1985 template<class _Rp, class ..._ArgTypes>
1987 packaged_task<_Rp(_ArgTypes...)>::reset()
2111 template <class _Rp, class... _ArgTypes>
2114 swap(packaged_task<_Rp(_ArgTypes...)>& __x, packaged_task<_Rp(_ArgTypes...)>& __y) _NOEXCEPT
2123 template <class _Rp, class _Fp>
2124 _LIBCPP_INLINE_VISIBILITY future<_Rp>
2127 unique_ptr<__deferred_assoc_state<_Rp, _Fp>, __release_shared_count>
2128 __h(new __deferred_assoc_state<_Rp, _Fp>(_VSTD::forward<_Fp>(__f)));
2129 return future<_Rp>(__h.get());
2132 template <class _Rp, class _Fp>
2133 _LIBCPP_INLINE_VISIBILITY future<_Rp>
2136 unique_ptr<__async_assoc_state<_Rp, _Fp>, __release_shared_count>
2137 __h(new __async_assoc_state<_Rp, _Fp>(_VSTD::forward<_Fp>(__f)));
2138 _VSTD::thread(&__async_assoc_state<_Rp, _Fp>::__execute, __h.get()).detach();
2139 return future<_Rp>(__h.get());
2150 typedef typename __invoke_of<_Fp, _Args...>::type _Rp;
2159 _Rp operator()()
2166 _Rp
2182 typedef typename _BF::_Rp _Rp;
2189 return _VSTD::__make_async_assoc_state<_Rp>(_BF(_LIBCPP_AUTO_CAST(_VSTD::forward<_Fp>(__f)),
2197 … return _VSTD::__make_deferred_assoc_state<_Rp>(_BF(_LIBCPP_AUTO_CAST(_VSTD::forward<_Fp>(__f)),
2199 return future<_Rp>{};
2215 template <class _Rp>
2218 __assoc_state<_Rp>* __state_;
2227 shared_future(future<_Rp>&& __f) _NOEXCEPT : __state_(__f.__state_)
2243 const _Rp& get() const {return __state_->copy();}
2266 template <class _Rp>
2267 shared_future<_Rp>::~shared_future()
2273 template <class _Rp>
2274 shared_future<_Rp>&
2275 shared_future<_Rp>::operator=(const shared_future& __rhs) _NOEXCEPT
2285 template <class _Rp>
2286 class _LIBCPP_TEMPLATE_VIS shared_future<_Rp&>
2288 __assoc_state<_Rp&>* __state_;
2297 shared_future(future<_Rp&>&& __f) _NOEXCEPT : __state_(__f.__state_)
2313 _Rp& get() const {return __state_->copy();}
2336 template <class _Rp>
2337 shared_future<_Rp&>::~shared_future()
2343 template <class _Rp>
2344 shared_future<_Rp&>&
2345 shared_future<_Rp&>::operator=(const shared_future& __rhs)
2406 template <class _Rp>
2409 swap(shared_future<_Rp>& __x, shared_future<_Rp>& __y) _NOEXCEPT
2414 template <class _Rp>
2416 shared_future<_Rp>
2417 future<_Rp>::share() _NOEXCEPT
2419 return shared_future<_Rp>(_VSTD::move(*this));
2422 template <class _Rp>
2424 shared_future<_Rp&>
2425 future<_Rp&>::share() _NOEXCEPT
2427 return shared_future<_Rp&>(_VSTD::move(*this));