Home
last modified time | relevance | path

Searched refs:__func (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_for_each.h44 __for_each_impl(_Iter __first, _Sent __last, _Func& __func, _Proj& __proj) { in __for_each_impl()
46 std::invoke(__func, std::invoke(__proj, *__first));
47 return {std::move(__first), std::move(__func)};
56 operator()(_Iter __first, _Sent __last, _Func __func, _Proj __proj = {}) const {
57 return __for_each_impl(std::move(__first), std::move(__last), __func, __proj);
64 operator()(_Range&& __range, _Func __func, _Proj __proj = {}) const {
65 return __for_each_impl(ranges::begin(__range), ranges::end(__range), __func, __proj);
H A Dfor_each_segment.h27 __for_each_segment(_SegmentedIterator __first, _SegmentedIterator __last, _Functor __func) { in __for_each_segment() argument
35 __func(_Traits::__local(__first), _Traits::__local(__last)); in __for_each_segment()
40 __func(_Traits::__local(__first), _Traits::__end(__sfirst)); in __for_each_segment()
44 __func(_Traits::__begin(__sfirst), _Traits::__end(__sfirst)); in __for_each_segment()
48 __func(_Traits::__begin(__sfirst), _Traits::__local(__last)); in __for_each_segment()
H A Dranges_for_each_n.h43 operator()(_Iter __first, iter_difference_t<_Iter> __count, _Func __func, _Proj __proj = {}) const {
45 std::invoke(__func, std::invoke(__proj, *__first));
48 return {std::move(__first), std::move(__func)};
H A Dpstl.h302 …_ExecutionPolicy&& __policy, _ForwardIterator __first, _ForwardIterator __last, _Function __func) { in for_each() argument
306 …td::forward<_ExecutionPolicy>(__policy), std::move(__first), std::move(__last), std::move(__func)); in for_each()
316 for_each_n(_ExecutionPolicy&& __policy, _ForwardIterator __first, _Size __size, _Function __func) { in for_each_n() argument
320 …td::forward<_ExecutionPolicy>(__policy), std::move(__first), std::move(__size), std::move(__func)); in for_each_n()
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dterminate_on_exception.h
H A Dinteger_sequence.h81 …DE_FROM_ABI constexpr void __for_each_index_sequence(index_sequence<_Index...>, _Function __func) { in __for_each_index_sequence() argument
82 (__func.template operator()<_Index>(), ...); in __for_each_index_sequence()
/freebsd/contrib/llvm-project/libcxx/include/__functional/
H A Dfunction.h255 class __func;
258 class __func<_Fp, _Alloc, _Rp(_ArgTypes...)> : public __base<_Rp(_ArgTypes...)> {
262 _LIBCPP_HIDE_FROM_ABI explicit __func(_Fp&& __f) : __f_(std::move(__f)) {}
264 _LIBCPP_HIDE_FROM_ABI explicit __func(const _Fp& __f, const _Alloc& __a) : __f_(__f, __a) {}
266 _LIBCPP_HIDE_FROM_ABI explicit __func(const _Fp& __f, _Alloc&& __a) : __f_(__f, std::move(__a)) {}
268 …_LIBCPP_HIDE_FROM_ABI explicit __func(_Fp&& __f, _Alloc&& __a) : __f_(std::move(__f), std::move(__…
282 __base<_Rp(_ArgTypes...)>* __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::__clone() const {
284 typedef __rebind_alloc<__alloc_traits, __func> _Ap;
287 unique_ptr<__func, _Dp> __hold(__a.allocate(1), _Dp(__a, 1));
288 ::new ((void*)__hold.get()) __func(__f_.__target(), _Alloc(__a));
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__pstl/cpu_algos/
H A Dfor_each.h42 …y&& __policy, _ForwardIterator __first, _ForwardIterator __last, _Function __func) const noexcept { in operator()
46 …__first, __last, [&__policy, __func](_ForwardIterator __brick_first, _ForwardIterator __brick_last… in operator()
49 … _ForEachUnseq()(std::__remove_parallel_policy(__policy), __brick_first, __brick_last, __func); in operator()
54 __pstl::__simd_for_each(__first, __last - __first, __func); in operator()
57 std::for_each(__first, __last, __func); in operator()
/freebsd/contrib/llvm-project/libcxx/include/__pstl/backends/
H A Dlibdispatch.h55 __dispatch_apply(size_t __chunk_count, void* __context, void (*__func)(void* __context, size_t __ch…
58 _LIBCPP_HIDE_FROM_ABI void __dispatch_apply(size_t __chunk_count, _Func __func) noexcept { in __dispatch_apply() argument
59 __libdispatch::__dispatch_apply(__chunk_count, &__func, [](void* __context, size_t __chunk) { in __dispatch_apply()
74 …tch_parallel_for(__chunk_partitions __partitions, _RandomAccessIterator __first, _Functor __func) { in __dispatch_parallel_for() argument
82 __func(__first + __index, __first + __index + __this_chunk_size); in __dispatch_parallel_for()
93 __for_each(_RandomAccessIterator __first, _RandomAccessIterator __last, _Functor __func) {
95 __libdispatch::__partition_chunks(__last - __first), std::move(__first), std::move(__func));
H A Dserial.h60 …operator()(_Policy&&, _ForwardIterator __first, _ForwardIterator __last, _Function&& __func) const…
61 std::for_each(std::move(__first), std::move(__last), std::forward<_Function>(__func));
H A Ddefault.h186 …operator()(_Policy&& __policy, _ForwardIterator __first, _Size __size, _Function __func) const noe…
190 return _ForEach()(__policy, std::move(__first), std::move(__last), std::move(__func));
193 std::for_each_n(std::move(__first), __size, std::move(__func));
/freebsd/contrib/llvm-project/libcxx/src/
H A Dlegacy_debug_handler.cpp
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A D__clang_hip_cmath.h190 #define __DEF_FUN1(__retty, __func) \ argument
191 __DEVICE__ __CONSTEXPR__ __retty __func(float __x) { return __func##f(__x); }
194 #define __DEF_FUN2(__retty, __func) \ argument
195 __DEVICE__ __CONSTEXPR__ __retty __func(float __x, float __y) { \
196 return __func##f(__x, __y); \
200 #define __DEF_FUN2_FI(__retty, __func) \ argument
201 __DEVICE__ __CONSTEXPR__ __retty __func(float __x, int __y) { \
202 return __func##f(__x, __y); \
/freebsd/contrib/llvm-project/libcxx/include/__thread/support/
H A Dc11.h150 inline _LIBCPP_HIDE_FROM_ABI int __libcpp_thread_create(__libcpp_thread_t* __t, void* (*__func)(voi… in __libcpp_thread_create()
151 int __ec = thrd_create(__t, reinterpret_cast<thrd_start_t>(__func), __arg); in __libcpp_thread_create()
H A Dpthread.h181 inline _LIBCPP_HIDE_FROM_ABI int __libcpp_thread_create(__libcpp_thread_t* __t, void* (*__func)(voi… in __libcpp_thread_create()
182 return pthread_create(__t, nullptr, __func, __arg); in __libcpp_thread_create()
H A Dwindows.h103 _LIBCPP_EXPORTED_FROM_ABI int __libcpp_thread_create(__libcpp_thread_t* __t, void* (*__func)(void*)…
/freebsd/sys/contrib/openzfs/include/
H A Dlibzutil.h251 #define __FOR_EACH_VDEV(__zhp, __nv, __func) { \ argument
256 for_each_vdev_cb(&__state, __root_nv, __func, &__nv) == 1; \
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dtransform_view.h87 …IBCPP_HIDE_FROM_ABI constexpr _LIBCPP_EXPLICIT_SINCE_CXX23 transform_view(_View __base, _Fn __func) in transform_view() argument
88 : __func_(std::in_place, std::move(__func)), __base_(std::move(__base)) {} in transform_view()