Lines Matching refs:__f_

144   __compressed_pair<_Fp, _Ap> __f_;
150 _LIBCPP_HIDE_FROM_ABI const _Target& __target() const { return __f_.first(); }
153 _LIBCPP_HIDE_FROM_ABI const _Alloc& __get_allocator() const { return __f_.second(); }
156 : __f_(piecewise_construct, std::forward_as_tuple(std::move(__f)), std::forward_as_tuple()) {}
159 : __f_(piecewise_construct, std::forward_as_tuple(__f), std::forward_as_tuple(__a)) {}
162 … : __f_(piecewise_construct, std::forward_as_tuple(__f), std::forward_as_tuple(std::move(__a))) {}
165 …: __f_(piecewise_construct, std::forward_as_tuple(std::move(__f)), std::forward_as_tuple(std::move…
169 return _Invoker::__call(__f_.first(), std::forward<_ArgTypes>(__arg)...);
175 _AA __a(__f_.second());
178 ::new ((void*)__hold.get()) __alloc_func(__f_.first(), _Alloc(__a));
182 _LIBCPP_HIDE_FROM_ABI void destroy() _NOEXCEPT { __f_.~__compressed_pair<_Target, _Alloc>(); }
195 _Fp __f_;
200 _LIBCPP_HIDE_FROM_ABI const _Target& __target() const { return __f_; }
202 _LIBCPP_HIDE_FROM_ABI explicit __default_alloc_func(_Target&& __f) : __f_(std::move(__f)) {}
204 _LIBCPP_HIDE_FROM_ABI explicit __default_alloc_func(const _Target& __f) : __f_(__f) {}
208 return _Invoker::__call(__f_, std::forward<_ArgTypes>(__arg)...);
213 …_default_alloc_func* __res = ::new ((void*)__hold.get()) __default_alloc_func(__f_);
218 _LIBCPP_HIDE_FROM_ABI void destroy() _NOEXCEPT { __f_.~_Target(); }
257 __alloc_func<_Fp, _Alloc, _Rp(_ArgTypes...)> __f_;
260 _LIBCPP_HIDE_FROM_ABI explicit __func(_Fp&& __f) : __f_(std::move(__f)) {}
262 _LIBCPP_HIDE_FROM_ABI explicit __func(const _Fp& __f, const _Alloc& __a) : __f_(__f, __a) {}
264 _LIBCPP_HIDE_FROM_ABI explicit __func(const _Fp& __f, _Alloc&& __a) : __f_(__f, std::move(__a)) {}
266 …_LIBCPP_HIDE_FROM_ABI explicit __func(_Fp&& __f, _Alloc&& __a) : __f_(std::move(__f), std::move(__…
283 _Ap __a(__f_.__get_allocator());
286 ::new ((void*)__hold.get()) __func(__f_.__target(), _Alloc(__a));
292 ::new ((void*)__p) __func(__f_.__target(), __f_.__get_allocator());
297 __f_.destroy();
304 _Ap __a(__f_.__get_allocator());
305 __f_.destroy();
311 return __f_(std::forward<_ArgTypes>(__arg)...);
319 return std::addressof(__f_.__target());
342 __func* __f_;
347 _LIBCPP_HIDE_FROM_ABI __value_func() _NOEXCEPT : __f_(nullptr) {}
350 _LIBCPP_HIDE_FROM_ABI __value_func(_Fp&& __f, const _Alloc& __a) : __f_(nullptr) {
359 __f_ = ::new ((void*)&__buf_) _Fun(std::move(__f), _Alloc(__af));
364 __f_ = __hold.release();
373 if (__f.__f_ == nullptr)
374 __f_ = nullptr;
375 else if ((void*)__f.__f_ == &__f.__buf_) {
376 __f_ = __as_base(&__buf_);
377 __f.__f_->__clone(__f_);
379 __f_ = __f.__f_->__clone();
383 if (__f.__f_ == nullptr)
384 __f_ = nullptr;
385 else if ((void*)__f.__f_ == &__f.__buf_) {
386 __f_ = __as_base(&__buf_);
387 __f.__f_->__clone(__f_);
389 __f_ = __f.__f_;
390 __f.__f_ = nullptr;
395 if ((void*)__f_ == &__buf_)
396 __f_->destroy();
397 else if (__f_)
398 __f_->destroy_deallocate();
403 if (__f.__f_ == nullptr)
404 __f_ = nullptr;
405 else if ((void*)__f.__f_ == &__f.__buf_) {
406 __f_ = __as_base(&__buf_);
407 __f.__f_->__clone(__f_);
409 __f_ = __f.__f_;
410 __f.__f_ = nullptr;
416 __func* __f = __f_;
417 __f_ = nullptr;
426 if (__f_ == nullptr)
428 return (*__f_)(std::forward<_ArgTypes>(__args)...);
434 if ((void*)__f_ == &__buf_ && (void*)__f.__f_ == &__f.__buf_) {
439 __f_->__clone(__t);
440 __f_->destroy();
441 __f_ = nullptr;
442 __f.__f_->__clone(__as_base(&__buf_));
443 __f.__f_->destroy();
444 __f.__f_ = nullptr;
445 __f_ = __as_base(&__buf_);
448 __f.__f_ = __as_base(&__f.__buf_);
449 } else if ((void*)__f_ == &__buf_) {
450 __f_->__clone(__as_base(&__f.__buf_));
451 __f_->destroy();
452 __f_ = __f.__f_;
453 __f.__f_ = __as_base(&__f.__buf_);
454 } else if ((void*)__f.__f_ == &__f.__buf_) {
455 __f.__f_->__clone(__as_base(&__buf_));
456 __f.__f_->destroy();
457 __f.__f_ = __f_;
458 __f_ = __as_base(&__buf_);
460 std::swap(__f_, __f.__f_);
463 _LIBCPP_HIDE_FROM_ABI explicit operator bool() const _NOEXCEPT { return __f_ != nullptr; }
467 if (__f_ == nullptr)
469 return __f_->target_type();
474 if (__f_ == nullptr)
476 return (const _Tp*)__f_->target(typeid(_Tp));
748 __block_type __f_;
753 : __f_(__f)
755 : __f_(reinterpret_cast<__block_type>(__f ? _Block_copy(__f) : nullptr))
764 : __f_(__f)
766 : __f_(reinterpret_cast<__block_type>(__f ? _Block_copy(__f) : nullptr))
780 virtual void __clone(__base<_Rp(_ArgTypes...)>* __p) const { ::new ((void*)__p) __func(__f_); }
784 if (__f_)
785 _Block_release(__f_);
787 __f_ = 0;
798 …virtual _Rp operator()(_ArgTypes&&... __arg) { return std::__invoke(__f_, std::forward<_ArgTypes>(…
803 return &__f_;
825 __func __f_;
886 _LIBCPP_HIDE_FROM_ABI explicit operator bool() const _NOEXCEPT { return static_cast<bool>(__f_); }
919 function<_Rp(_ArgTypes...)>::function(const function& __f) : __f_(__f.__f_) {}
924 …p(_ArgTypes...)>::function(allocator_arg_t, const _Alloc&, const function& __f) : __f_(__f.__f_) {}
928 function<_Rp(_ArgTypes...)>::function(function&& __f) _NOEXCEPT : __f_(std::move(__f.__f_)) {}
933 …Types...)>::function(allocator_arg_t, const _Alloc&, function&& __f) : __f_(std::move(__f.__f_)) {}
938 function<_Rp(_ArgTypes...)>::function(_Fp __f) : __f_(std::move(__f)) {}
943 function<_Rp(_ArgTypes...)>::function(allocator_arg_t, const _Alloc& __a, _Fp __f) : __f_(std::move…
954 __f_ = std::move(__f.__f_);
960 __f_ = nullptr;
976 __f_.swap(__f.__f_);
981 return __f_(std::forward<_ArgTypes>(__arg)...);
988 return __f_.target_type();
994 return (_Tp*)(__f_.template target<_Tp>());
1000 return __f_.template target<_Tp>();