Lines Matching refs:__f
692 _LIBCPP_INLINE_VISIBILITY explicit pointer_to_unary_function(_Result (*__f)(_Arg))
693 : __f_(__f) {}
701 ptr_fun(_Result (*__f)(_Arg))
702 {return pointer_to_unary_function<_Arg,_Result>(__f);}
710 _LIBCPP_INLINE_VISIBILITY explicit pointer_to_binary_function(_Result (*__f)(_Arg1, _Arg2))
711 : __f_(__f) {}
719 ptr_fun(_Result (*__f)(_Arg1,_Arg2))
720 {return pointer_to_binary_function<_Arg1,_Arg2,_Result>(__f);}
747 mem_fun(_Sp (_Tp::*__f)())
748 {return mem_fun_t<_Sp,_Tp>(__f);}
753 mem_fun(_Sp (_Tp::*__f)(_Ap))
754 {return mem_fun1_t<_Sp,_Tp,_Ap>(__f);}
781 mem_fun_ref(_Sp (_Tp::*__f)())
782 {return mem_fun_ref_t<_Sp,_Tp>(__f);}
787 mem_fun_ref(_Sp (_Tp::*__f)(_Ap))
788 {return mem_fun1_ref_t<_Sp,_Tp,_Ap>(__f);}
815 mem_fun(_Sp (_Tp::*__f)() const)
816 {return const_mem_fun_t<_Sp,_Tp>(__f);}
821 mem_fun(_Sp (_Tp::*__f)(_Ap) const)
822 {return const_mem_fun1_t<_Sp,_Tp,_Ap>(__f);}
850 mem_fun_ref(_Sp (_Tp::*__f)() const)
851 {return const_mem_fun_ref_t<_Sp,_Tp>(__f);}
856 mem_fun_ref(_Sp (_Tp::*__f)(_Ap) const)
857 {return const_mem_fun1_ref_t<_Sp,_Tp,_Ap>(__f);}
876 _LIBCPP_INLINE_VISIBILITY __mem_fn(type __f) : __f_(__f) {}
992 explicit __func(_Fp&& __f)
993 : __f_(piecewise_construct, _VSTD::forward_as_tuple(_VSTD::move(__f)),
996 explicit __func(const _Fp& __f, const _Alloc& __a)
997 : __f_(piecewise_construct, _VSTD::forward_as_tuple(__f),
1001 explicit __func(const _Fp& __f, _Alloc&& __a)
1002 : __f_(piecewise_construct, _VSTD::forward_as_tuple(__f),
1006 explicit __func(_Fp&& __f, _Alloc&& __a)
1007 : __f_(piecewise_construct, _VSTD::forward_as_tuple(_VSTD::move(__f)),
1156 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
1176 void assign(_Fp&& __f, const _Alloc& __a)
1177 {function(allocator_arg, __a, _VSTD::forward<_Fp>(__f)).swap(*this);}
1201 function<_Rp(_ArgTypes...)>::function(const function& __f)
1203 if (__f.__f_ == 0)
1205 else if (__f.__f_ == (const __base*)&__f.__buf_)
1208 __f.__f_->__clone(__f_);
1211 __f_ = __f.__f_->__clone();
1217 const function& __f)
1219 if (__f.__f_ == 0)
1221 else if (__f.__f_ == (const __base*)&__f.__buf_)
1224 __f.__f_->__clone(__f_);
1227 __f_ = __f.__f_->__clone();
1231 function<_Rp(_ArgTypes...)>::function(function&& __f) _NOEXCEPT
1233 if (__f.__f_ == 0)
1235 else if (__f.__f_ == (__base*)&__f.__buf_)
1238 __f.__f_->__clone(__f_);
1242 __f_ = __f.__f_;
1243 __f.__f_ = 0;
1250 function&& __f)
1252 if (__f.__f_ == 0)
1254 else if (__f.__f_ == (__base*)&__f.__buf_)
1257 __f.__f_->__clone(__f_);
1261 __f_ = __f.__f_;
1262 __f.__f_ = 0;
1268 function<_Rp(_ArgTypes...)>::function(_Fp __f,
1272 if (__not_null(__f))
1278 ::new (__f_) _FF(_VSTD::move(__f));
1286 ::new (__hold.get()) _FF(_VSTD::move(__f), allocator<_Fp>(__a));
1294 function<_Rp(_ArgTypes...)>::function(allocator_arg_t, const _Alloc& __a0, _Fp __f,
1299 if (__not_null(__f))
1305 ::new (__f_) _FF(_VSTD::move(__f));
1319 ::new (__hold.get()) _FF(_VSTD::move(__f), _Alloc(__a));
1327 function<_Rp(_ArgTypes...)>::operator=(const function& __f)
1329 function(__f).swap(*this);
1335 function<_Rp(_ArgTypes...)>::operator=(function&& __f) _NOEXCEPT
1342 if (__f.__f_ == 0)
1344 else if (__f.__f_ == (__base*)&__f.__buf_)
1347 __f.__f_->__clone(__f_);
1351 __f_ = __f.__f_;
1352 __f.__f_ = 0;
1376 function<_Rp(_ArgTypes...)>::operator=(_Fp&& __f)
1378 function(_VSTD::forward<_Fp>(__f)).swap(*this);
1393 function<_Rp(_ArgTypes...)>::swap(function& __f) _NOEXCEPT
1395 if (__f_ == (__base*)&__buf_ && __f.__f_ == (__base*)&__f.__buf_)
1402 __f.__f_->__clone((__base*)&__buf_);
1403 __f.__f_->destroy();
1404 __f.__f_ = 0;
1406 __t->__clone((__base*)&__f.__buf_);
1408 __f.__f_ = (__base*)&__f.__buf_;
1412 __f_->__clone((__base*)&__f.__buf_);
1414 __f_ = __f.__f_;
1415 __f.__f_ = (__base*)&__f.__buf_;
1417 else if (__f.__f_ == (__base*)&__f.__buf_)
1419 __f.__f_->__clone((__base*)&__buf_);
1420 __f.__f_->destroy();
1421 __f.__f_ = __f_;
1425 _VSTD::swap(__f_, __f.__f_);
1475 operator==(const function<_Rp(_ArgTypes...)>& __f, nullptr_t) _NOEXCEPT {return !__f;}
1480 operator==(nullptr_t, const function<_Rp(_ArgTypes...)>& __f) _NOEXCEPT {return !__f;}
1485 operator!=(const function<_Rp(_ArgTypes...)>& __f, nullptr_t) _NOEXCEPT {return (bool)__f;}
1490 operator!=(nullptr_t, const function<_Rp(_ArgTypes...)>& __f) _NOEXCEPT {return (bool)__f;}
1666 __apply_functor(_Fp& __f, _BoundArgs& __bound_args, __tuple_indices<_Indx...>,
1669 return __invoke(__f, __mu(get<_Indx>(__bound_args), __args)...);
1719 explicit __bind(_Gp&& __f, _BA&& ...__bound_args)
1720 : __f_(_VSTD::forward<_Gp>(__f)),
1781 explicit __bind_r(_Gp&& __f, _BA&& ...__bound_args)
1782 : base(_VSTD::forward<_Gp>(__f),
1808 bind(_Fp&& __f, _BoundArgs&&... __bound_args)
1811 return type(_VSTD::forward<_Fp>(__f), _VSTD::forward<_BoundArgs>(__bound_args)...);
1817 bind(_Fp&& __f, _BoundArgs&&... __bound_args)
1820 return type(_VSTD::forward<_Fp>(__f), _VSTD::forward<_BoundArgs>(__bound_args)...);