Lines Matching refs:__func

1660 // __func implements __base for a given functor type.
1662 template<class _FD, class _Alloc, class _FB> class __func;
1665 class __func<_Fp, _Alloc, _Rp(_ArgTypes...)>
1671 explicit __func(_Fp&& __f)
1675 explicit __func(const _Fp& __f, const _Alloc& __a)
1679 explicit __func(const _Fp& __f, _Alloc&& __a)
1683 explicit __func(_Fp&& __f, _Alloc&& __a)
1699 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::__clone() const
1702 typedef typename __rebind_alloc_helper<__alloc_traits, __func>::type _Ap;
1705 unique_ptr<__func, _Dp> __hold(__a.allocate(1), _Dp(__a, 1));
1706 ::new ((void*)__hold.get()) __func(__f_.__target(), _Alloc(__a));
1712 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::__clone(__base<_Rp(_ArgTypes...)>* __p) const
1714 ::new ((void*)__p) __func(__f_.__target(), __f_.__get_allocator());
1719 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::destroy() _NOEXCEPT
1726 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::destroy_deallocate() _NOEXCEPT
1729 typedef typename __rebind_alloc_helper<__alloc_traits, __func>::type _Ap;
1737 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::operator()(_ArgTypes&& ... __arg)
1746 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::target(const type_info& __ti) const _NOEXCEPT
1755 __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::target_type() const _NOEXCEPT
1762 // __value_func creates a value-type from a __func.
1770 typedef __base<_Rp(_ArgTypes...)> __func;
1771 __func* __f_;
1773 _LIBCPP_NO_CFI static __func* __as_base(void* p)
1775 return reinterpret_cast<__func*>(p);
1787 typedef __function::__func<_Fp, _Alloc, _Rp(_ArgTypes...)> _Fun;
1804 unique_ptr<__func, _Dp> __hold(__af.allocate(1), _Dp(__af, 1));
1878 __func* __f = __f_;
1903 __func* __t = __as_base(&__tempbuf);
2072 // Creates an invoker that calls the given instance of __func.
2272 class __func<_Rp1(^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)>
2280 explicit __func(__block_type const& __f)
2287 explicit __func(__block_type __f, const _Alloc& /* unused */)
2300 ::new ((void*)__p) __func(__f_);
2322 if (__ti == typeid(__func::__block_type))
2328 return typeid(__func::__block_type);
2343 typedef __function::__value_func<_Rp(_ArgTypes...)> __func;
2345 typedef __function::__policy_func<_Rp(_ArgTypes...)> __func;
2348 __func __f_;