/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
H A D | invoke.h | 88 template<typename _Callable, typename... _Args> in _GLIBCXX_VISIBILITY() 89 constexpr typename __invoke_result<_Callable, _Args...>::type in _GLIBCXX_VISIBILITY() 90 __invoke(_Callable&& __fn, _Args&&... __args) in _GLIBCXX_VISIBILITY() 91 noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) in _GLIBCXX_VISIBILITY() 93 using __result = __invoke_result<_Callable, _Args...>; in _GLIBCXX_VISIBILITY() 96 return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), in _GLIBCXX_VISIBILITY() 102 template<typename _Res, typename _Callable, typename... _Args> in _GLIBCXX_VISIBILITY() 103 constexpr enable_if_t<is_invocable_r_v<_Res, _Callable, _Args...>, _Res> in _GLIBCXX_VISIBILITY() 104 __invoke_r(_Callable&& __fn, _Args&&... __args) in _GLIBCXX_VISIBILITY() 105 noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) in _GLIBCXX_VISIBILITY() [all …]
|
H A D | std_thread.h | 144 template<typename _Callable, typename... _Args, in _GLIBCXX_VISIBILITY() 145 typename = _Require<__not_same<_Callable>>> in _GLIBCXX_VISIBILITY() 147 thread(_Callable&& __f, _Args&&... __args) in _GLIBCXX_VISIBILITY() 149 static_assert( __is_invocable<typename decay<_Callable>::type, in _GLIBCXX_VISIBILITY() 160 using _Wrapper = _Call_wrapper<_Callable, _Args...>; in _GLIBCXX_VISIBILITY() 164 std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), in _GLIBCXX_VISIBILITY() 220 template<typename _Callable> in _GLIBCXX_VISIBILITY() 223 _Callable _M_func; in _GLIBCXX_VISIBILITY()
|
H A D | std_function.h | 348 struct _Callable in _GLIBCXX_VISIBILITY() 434 typename _Constraints = _Requires<_Callable<_Functor>>> in _GLIBCXX_VISIBILITY() 530 _Requires<_Callable<_Functor>, function&> in _GLIBCXX_VISIBILITY()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/ |
H A D | invoke.h | 87 template<typename _Callable, typename... _Args> in _GLIBCXX_VISIBILITY() 88 constexpr typename __invoke_result<_Callable, _Args...>::type in _GLIBCXX_VISIBILITY() 89 __invoke(_Callable&& __fn, _Args&&... __args) in _GLIBCXX_VISIBILITY() 90 noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) in _GLIBCXX_VISIBILITY() 92 using __result = __invoke_result<_Callable, _Args...>; in _GLIBCXX_VISIBILITY() 95 return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), in _GLIBCXX_VISIBILITY() 101 template<typename _Res, typename _Callable, typename... _Args> in _GLIBCXX_VISIBILITY() 102 constexpr enable_if_t<is_invocable_r_v<_Res, _Callable, _Args...>, _Res> in _GLIBCXX_VISIBILITY() 103 __invoke_r(_Callable&& __fn, _Args&&... __args) in _GLIBCXX_VISIBILITY() 104 noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) in _GLIBCXX_VISIBILITY() [all …]
|
H A D | std_function.h | 309 struct _Callable in _GLIBCXX_VISIBILITY() struct 316 struct _Callable<function, _Tp> : false_type { }; in _GLIBCXX_VISIBILITY() 380 typename = _Requires<_Callable<_Functor>, void>> in _GLIBCXX_VISIBILITY() 456 _Requires<_Callable<typename decay<_Functor>::type>, function&> in _GLIBCXX_VISIBILITY()
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/ |
H A D | thread | 108 template<typename _Callable, typename... _Args> 111 template<typename _Callable, typename _Obj, typename... _Args> 112 constexpr bool __pmf_expects_stop_token<_Callable, _Obj, _Args...> 113 = __and_<is_member_function_pointer<remove_reference_t<_Callable>>, 114 is_invocable<_Callable, _Obj, stop_token, _Args...>>::value; 142 template<typename _Callable, typename... _Args, 143 typename = enable_if_t<!is_same_v<remove_cvref_t<_Callable>, 146 jthread(_Callable&& __f, _Args&&... __args) 147 : _M_thread{_S_create(_M_stop_source, std::forward<_Callable>(__f), 239 template<typename _Callable, typename... _Args> [all …]
|
H A D | mutex | 798 template<typename _Callable, typename... _Args> 800 call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 813 template<typename _Callable> 815 _Prepare_execution(_Callable& __c) 820 __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 848 template<typename _Callable> 850 _Prepare_execution(_Callable& __c) 878 template<typename _Callable, typename... _Args> 880 call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 884 std::__invoke(std::forward<_Callable>(__f), [all …]
|
H A D | functional | 105 template<typename _Callable, typename... _Args> 106 inline _GLIBCXX20_CONSTEXPR invoke_result_t<_Callable, _Args...> 107 invoke(_Callable&& __fn, _Args&&... __args) 108 noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 110 return std::__invoke(std::forward<_Callable>(__fn), 124 template<typename _Res, typename _Callable, typename... _Args> 125 requires is_invocable_r_v<_Res, _Callable, _Args...> 127 invoke_r(_Callable&& __fn, _Args&&... __args) 128 noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 130 return std::__invoke_r<_Res>(std::forward<_Callable>(__fn),
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/ |
H A D | thread | 130 template<typename _Callable, typename... _Args, 131 typename = _Require<__not_same<_Callable>>> 133 thread(_Callable&& __f, _Args&&... __args) 135 static_assert( __is_invocable<typename decay<_Callable>::type, 147 using _Invoker_type = _Invoker<__decayed_tuple<_Callable, _Args...>>; 150 std::forward<_Callable>(__f), std::forward<_Args>(__args)...), 204 template<typename _Callable> 207 _Callable _M_func; 221 template<typename _Callable, typename... _Args> 225 using _Impl = _State_impl<_Callable>; [all …]
|
H A D | ranges | 1082 template<typename _Callable> 1085 template<typename _Callable> 1090 __detail::__maybe_present_t<!is_default_constructible_v<_Callable>, 1091 _Callable> _M_callable; 1095 _RangeAdaptor(const _Callable& = {}) 1096 requires is_default_constructible_v<_Callable> 1100 _RangeAdaptor(_Callable __callable) 1101 requires (!is_default_constructible_v<_Callable>) 1121 if constexpr (is_invocable_v<_Callable, _Args...>) 1128 return _Callable{}(std::forward<_Args>(__args)...); [all …]
|
H A D | mutex | 687 template<typename _Callable, typename... _Args> 689 call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 710 template<typename _Callable, typename... _Args> 712 call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 717 std::__invoke(std::forward<_Callable>(__f),
|
H A D | functional | 83 template<typename _Callable, typename... _Args> 84 inline _GLIBCXX20_CONSTEXPR invoke_result_t<_Callable, _Args...> 85 invoke(_Callable&& __fn, _Args&&... __args) 86 noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 88 return std::__invoke(std::forward<_Callable>(__fn),
|
/netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
H A D | mutex | 557 template<class _Callable, class... _Args> 559 void call_once(once_flag&, _Callable&&, _Args&&...); 563 template<class _Callable> 565 void call_once(once_flag&, _Callable&); 567 template<class _Callable> 569 void call_once(once_flag&, const _Callable&); 593 template<class _Callable, class... _Args> 595 void call_once(once_flag&, _Callable&&, _Args&&...); 597 template<class _Callable> 599 void call_once(once_flag&, _Callable&); [all …]
|
H A D | future | 1268 template <class _Callable> class packaged_task; 1686 template <class _Callable> class __packaged_task_function; 2136 template <class _Callable, class _Alloc> 2137 struct _LIBCPP_TEMPLATE_VIS uses_allocator<packaged_task<_Callable>, _Alloc>
|
H A D | type_traits | 4046 template <class _Callable> class result_of;
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/ |
H A D | ChangeLog-2009 | 219 * include/std/mutex (call_once(once_flag&, _Callable, _Args&&...)): 2828 * include/std/thread (_Callable constructor): Use forward. 11916 * include/std/thread (thread<>::thread(_Callable)): Explicitly use 11917 _Callable as template argument for _M_make_shared_data.
|
H A D | ChangeLog-2016 | 7414 (function::_Callable): Use lvalue in result_of expression. 9865 (function::_Callable): Replace alias template with class template 9867 (function(_Functor)): Add "not self" constraint so that _Callable is
|
H A D | ChangeLog-2014 | 5315 (thread::thread<_Callable, _Args...>): Call new overload with an 6588 * include/std/functional (function::_Callable): Exclude own type
|
H A D | ChangeLog-2019 | 2270 (function::_Callable): Use std::__is_invocable_impl instead of 4085 Replace single _Callable parameter with variadic _Args pack, to
|
H A D | ChangeLog-2018 | 5420 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
|
H A D | ChangeLog-2021 | 3106 (function::_Callable): Simplify by using _Decay.
|