Lines Matching refs:_Fp
845 template <class _Rp, class _Fp>
851 _Fp __func_;
855 explicit __deferred_assoc_state(_Fp&& __f);
860 template <class _Rp, class _Fp>
862 __deferred_assoc_state<_Rp, _Fp>::__deferred_assoc_state(_Fp&& __f)
863 : __func_(_VSTD::forward<_Fp>(__f))
868 template <class _Rp, class _Fp>
870 __deferred_assoc_state<_Rp, _Fp>::__execute()
886 template <class _Fp>
887 class _LIBCPP_AVAILABILITY_FUTURE __deferred_assoc_state<void, _Fp>
892 _Fp __func_;
896 explicit __deferred_assoc_state(_Fp&& __f);
901 template <class _Fp>
903 __deferred_assoc_state<void, _Fp>::__deferred_assoc_state(_Fp&& __f)
904 : __func_(_VSTD::forward<_Fp>(__f))
909 template <class _Fp>
911 __deferred_assoc_state<void, _Fp>::__execute()
928 template <class _Rp, class _Fp>
934 _Fp __func_;
939 explicit __async_assoc_state(_Fp&& __f);
944 template <class _Rp, class _Fp>
946 __async_assoc_state<_Rp, _Fp>::__async_assoc_state(_Fp&& __f)
947 : __func_(_VSTD::forward<_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
977 template <class _Fp>
978 class _LIBCPP_AVAILABILITY_FUTURE __async_assoc_state<void, _Fp>
983 _Fp __func_;
988 explicit __async_assoc_state(_Fp&& __f);
993 template <class _Fp>
995 __async_assoc_state<void, _Fp>::__async_assoc_state(_Fp&& __f)
996 : __func_(_VSTD::forward<_Fp>(__f))
1000 template <class _Fp>
1002 __async_assoc_state<void, _Fp>::__execute()
1019 template <class _Fp>
1021 __async_assoc_state<void, _Fp>::__on_zero_shared() _NOEXCEPT
1034 template <class _Rp, class _Fp>
1036 __make_deferred_assoc_state(_Fp&& __f);
1038 template <class _Rp, class _Fp>
1040 __make_async_assoc_state(_Fp&& __f);
1052 template <class _R1, class _Fp>
1053 friend future<_R1> __make_deferred_assoc_state(_Fp&& __f);
1054 template <class _R1, class _Fp>
1055 friend future<_R1> __make_async_assoc_state(_Fp&& __f);
1139 template <class _R1, class _Fp>
1140 friend future<_R1> __make_deferred_assoc_state(_Fp&& __f);
1141 template <class _R1, class _Fp>
1142 friend future<_R1> __make_async_assoc_state(_Fp&& __f);
1221 template <class _R1, class _Fp>
1222 friend future<_R1> __make_deferred_assoc_state(_Fp&& __f);
1223 template <class _R1, class _Fp>
1224 friend future<_R1> __make_async_assoc_state(_Fp&& __f);
1621 template<class _Fp> class __packaged_task_base;
1641 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1642 class _LIBCPP_AVAILABILITY_FUTURE __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>
1645 __compressed_pair<_Fp, _Alloc> __f_;
1648 explicit __packaged_task_func(const _Fp& __f) : __f_(__f, __default_init_tag()) {}
1650 explicit __packaged_task_func(_Fp&& __f) : __f_(_VSTD::move(__f), __default_init_tag()) {}
1652 __packaged_task_func(const _Fp& __f, const _Alloc& __a)
1655 __packaged_task_func(_Fp&& __f, const _Alloc& __a)
1663 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1665 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::__move_to(
1671 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1673 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::destroy()
1675 __f_.~__compressed_pair<_Fp, _Alloc>();
1678 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1680 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::destroy_deallocate()
1686 __f_.~__compressed_pair<_Fp, _Alloc>();
1690 template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
1692 __packaged_task_func<_Fp, _Alloc, _Rp(_ArgTypes...)>::operator()(_ArgTypes&& ... __arg)
1716 template<class _Fp>
1717 __packaged_task_function(_Fp&& __f);
1718 template<class _Fp, class _Alloc>
1719 __packaged_task_function(allocator_arg_t, const _Alloc& __a, _Fp&& __f);
1753 template <class _Fp>
1754 __packaged_task_function<_Rp(_ArgTypes...)>::__packaged_task_function(_Fp&& __f)
1757 typedef typename remove_reference<typename decay<_Fp>::type>::type _FR;
1761 ::new ((void*)&__buf_) _FF(_VSTD::forward<_Fp>(__f));
1770 ::new ((void*)__hold.get()) _FF(_VSTD::forward<_Fp>(__f), allocator<_FR>(__a));
1776 template <class _Fp, class _Alloc>
1778 allocator_arg_t, const _Alloc& __a0, _Fp&& __f)
1781 typedef typename remove_reference<typename decay<_Fp>::type>::type _FR;
1786 ::new ((void*)__f_) _FF(_VSTD::forward<_Fp>(__f));
1795 _FF(_VSTD::forward<_Fp>(__f), _Alloc(__a));
1893 template <class _Fp,
1894 class = __enable_if_t<!is_same<__uncvref_t<_Fp>, packaged_task>::value> >
1896 explicit packaged_task(_Fp&& __f) : __f_(_VSTD::forward<_Fp>(__f)) {}
1897 template <class _Fp, class _Allocator,
1898 class = __enable_if_t<!is_same<__uncvref_t<_Fp>, packaged_task>::value> >
1900 packaged_task(allocator_arg_t, const _Allocator& __a, _Fp&& __f)
1901 : __f_(allocator_arg, __a, _VSTD::forward<_Fp>(__f)),
2008 template <class _Fp,
2009 class = __enable_if_t<!is_same<__uncvref_t<_Fp>, packaged_task>::value> >
2011 explicit packaged_task(_Fp&& __f) : __f_(_VSTD::forward<_Fp>(__f)) {}
2012 template <class _Fp, class _Allocator,
2013 class = __enable_if_t<!is_same<__uncvref_t<_Fp>, packaged_task>::value> >
2015 packaged_task(allocator_arg_t, const _Allocator& __a, _Fp&& __f)
2016 : __f_(allocator_arg, __a, _VSTD::forward<_Fp>(__f)),
2123 template <class _Rp, class _Fp>
2125 __make_deferred_assoc_state(_Fp&& __f)
2127 unique_ptr<__deferred_assoc_state<_Rp, _Fp>, __release_shared_count>
2128 __h(new __deferred_assoc_state<_Rp, _Fp>(_VSTD::forward<_Fp>(__f)));
2132 template <class _Rp, class _Fp>
2134 __make_async_assoc_state(_Fp&& __f)
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();
2144 template <class _Fp, class... _Args>
2147 tuple<_Fp, _Args...> __f_;
2150 typedef typename __invoke_of<_Fp, _Args...>::type _Rp;
2153 explicit __async_func(_Fp&& __f, _Args&&... __args)
2176 template <class _Fp, class... _Args>
2178 future<typename __invoke_of<typename decay<_Fp>::type, typename decay<_Args>::type...>::type>
2179 async(launch __policy, _Fp&& __f, _Args&&... __args)
2181 typedef __async_func<typename decay<_Fp>::type, typename decay<_Args>::type...> _BF;
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)),
2202 template <class _Fp, class... _Args>
2204 future<typename __invoke_of<typename decay<_Fp>::type, typename decay<_Args>::type...>::type>
2205 async(_Fp&& __f, _Args&&... __args)
2207 return _VSTD::async(launch::any, _VSTD::forward<_Fp>(__f),