Lines Matching refs:__f
108 explicit __func(_Fp __f) : __f_(_VSTD::move(__f)) {}
109 explicit __func(_Fp __f, _Alloc __a) : __f_(_VSTD::move(__f), _VSTD::move(__a)) {}
193 _LIBCPP_INLINE_VISIBILITY explicit __func(_Fp __f) : __f_(_VSTD::move(__f)) {}
194 _LIBCPP_INLINE_VISIBILITY explicit __func(_Fp __f, _Alloc __a)
195 : __f_(_VSTD::move(__f), _VSTD::move(__a)) {}
279 _LIBCPP_INLINE_VISIBILITY explicit __func(_Fp __f) : __f_(_VSTD::move(__f)) {}
280 _LIBCPP_INLINE_VISIBILITY explicit __func(_Fp __f, _Alloc __a)
281 : __f_(_VSTD::move(__f), _VSTD::move(__a)) {}
365 _LIBCPP_INLINE_VISIBILITY explicit __func(_Fp __f) : __f_(_VSTD::move(__f)) {}
366 _LIBCPP_INLINE_VISIBILITY explicit __func(_Fp __f, _Alloc __a)
367 : __f_(_VSTD::move(__f), _VSTD::move(__a)) {}
474 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
493 void assign(_Fp __f, const _Alloc& __a)
494 {function(allocator_arg, __a, __f).swap(*this);}
518 function<_Rp()>::function(const function& __f)
520 if (__f.__f_ == 0)
522 else if (__f.__f_ == (const __base*)&__f.__buf_)
525 __f.__f_->__clone(__f_);
528 __f_ = __f.__f_->__clone();
533 function<_Rp()>::function(allocator_arg_t, const _Alloc&, const function& __f)
535 if (__f.__f_ == 0)
537 else if (__f.__f_ == (const __base*)&__f.__buf_)
540 __f.__f_->__clone(__f_);
543 __f_ = __f.__f_->__clone();
548 function<_Rp()>::function(_Fp __f,
552 if (__function::__not_null(__f))
558 ::new (__f_) _FF(__f);
566 ::new (__hold.get()) _FF(__f, allocator<_Fp>(__a));
574 function<_Rp()>::function(allocator_arg_t, const _Alloc& __a0, _Fp __f,
579 if (__function::__not_null(__f))
585 ::new (__f_) _FF(__f, __a0);
593 ::new (__hold.get()) _FF(__f, _Alloc(__a));
601 function<_Rp()>::operator=(const function& __f)
603 function(__f).swap(*this);
626 function<_Rp()>::operator=(_Fp __f)
628 function(_VSTD::move(__f)).swap(*this);
643 function<_Rp()>::swap(function& __f)
645 if (_VSTD::addressof(__f) == this)
647 if (__f_ == (__base*)&__buf_ && __f.__f_ == (__base*)&__f.__buf_)
654 __f.__f_->__clone((__base*)&__buf_);
655 __f.__f_->destroy();
656 __f.__f_ = 0;
658 __t->__clone((__base*)&__f.__buf_);
660 __f.__f_ = (__base*)&__f.__buf_;
664 __f_->__clone((__base*)&__f.__buf_);
666 __f_ = __f.__f_;
667 __f.__f_ = (__base*)&__f.__buf_;
669 else if (__f.__f_ == (__base*)&__f.__buf_)
671 __f.__f_->__clone((__base*)&__buf_);
672 __f.__f_->destroy();
673 __f.__f_ = __f_;
677 _VSTD::swap(__f_, __f.__f_);
750 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
769 void assign(_Fp __f, const _Alloc& __a)
770 {function(allocator_arg, __a, __f).swap(*this);}
794 function<_Rp(_A0)>::function(const function& __f)
796 if (__f.__f_ == 0)
798 else if (__f.__f_ == (const __base*)&__f.__buf_)
801 __f.__f_->__clone(__f_);
804 __f_ = __f.__f_->__clone();
809 function<_Rp(_A0)>::function(allocator_arg_t, const _Alloc&, const function& __f)
811 if (__f.__f_ == 0)
813 else if (__f.__f_ == (const __base*)&__f.__buf_)
816 __f.__f_->__clone(__f_);
819 __f_ = __f.__f_->__clone();
824 function<_Rp(_A0)>::function(_Fp __f,
828 if (__function::__not_null(__f))
834 ::new (__f_) _FF(__f);
842 ::new (__hold.get()) _FF(__f, allocator<_Fp>(__a));
850 function<_Rp(_A0)>::function(allocator_arg_t, const _Alloc& __a0, _Fp __f,
855 if (__function::__not_null(__f))
861 ::new (__f_) _FF(__f, __a0);
869 ::new (__hold.get()) _FF(__f, _Alloc(__a));
877 function<_Rp(_A0)>::operator=(const function& __f)
879 function(__f).swap(*this);
902 function<_Rp(_A0)>::operator=(_Fp __f)
904 function(_VSTD::move(__f)).swap(*this);
919 function<_Rp(_A0)>::swap(function& __f)
921 if (_VSTD::addressof(__f) == this)
923 if (__f_ == (__base*)&__buf_ && __f.__f_ == (__base*)&__f.__buf_)
930 __f.__f_->__clone((__base*)&__buf_);
931 __f.__f_->destroy();
932 __f.__f_ = 0;
934 __t->__clone((__base*)&__f.__buf_);
936 __f.__f_ = (__base*)&__f.__buf_;
940 __f_->__clone((__base*)&__f.__buf_);
942 __f_ = __f.__f_;
943 __f.__f_ = (__base*)&__f.__buf_;
945 else if (__f.__f_ == (__base*)&__f.__buf_)
947 __f.__f_->__clone((__base*)&__buf_);
948 __f.__f_->destroy();
949 __f.__f_ = __f_;
953 _VSTD::swap(__f_, __f.__f_);
1026 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
1045 void assign(_Fp __f, const _Alloc& __a)
1046 {function(allocator_arg, __a, __f).swap(*this);}
1070 function<_Rp(_A0, _A1)>::function(const function& __f)
1072 if (__f.__f_ == 0)
1074 else if (__f.__f_ == (const __base*)&__f.__buf_)
1077 __f.__f_->__clone(__f_);
1080 __f_ = __f.__f_->__clone();
1085 function<_Rp(_A0, _A1)>::function(allocator_arg_t, const _Alloc&, const function& __f)
1087 if (__f.__f_ == 0)
1089 else if (__f.__f_ == (const __base*)&__f.__buf_)
1092 __f.__f_->__clone(__f_);
1095 __f_ = __f.__f_->__clone();
1100 function<_Rp(_A0, _A1)>::function(_Fp __f,
1104 if (__function::__not_null(__f))
1110 ::new (__f_) _FF(__f);
1118 ::new (__hold.get()) _FF(__f, allocator<_Fp>(__a));
1126 function<_Rp(_A0, _A1)>::function(allocator_arg_t, const _Alloc& __a0, _Fp __f,
1131 if (__function::__not_null(__f))
1137 ::new (__f_) _FF(__f, __a0);
1145 ::new (__hold.get()) _FF(__f, _Alloc(__a));
1153 function<_Rp(_A0, _A1)>::operator=(const function& __f)
1155 function(__f).swap(*this);
1178 function<_Rp(_A0, _A1)>::operator=(_Fp __f)
1180 function(_VSTD::move(__f)).swap(*this);
1195 function<_Rp(_A0, _A1)>::swap(function& __f)
1197 if (_VSTD::addressof(__f) == this)
1199 if (__f_ == (__base*)&__buf_ && __f.__f_ == (__base*)&__f.__buf_)
1206 __f.__f_->__clone((__base*)&__buf_);
1207 __f.__f_->destroy();
1208 __f.__f_ = 0;
1210 __t->__clone((__base*)&__f.__buf_);
1212 __f.__f_ = (__base*)&__f.__buf_;
1216 __f_->__clone((__base*)&__f.__buf_);
1218 __f_ = __f.__f_;
1219 __f.__f_ = (__base*)&__f.__buf_;
1221 else if (__f.__f_ == (__base*)&__f.__buf_)
1223 __f.__f_->__clone((__base*)&__buf_);
1224 __f.__f_->destroy();
1225 __f.__f_ = __f_;
1229 _VSTD::swap(__f_, __f.__f_);
1301 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
1320 void assign(_Fp __f, const _Alloc& __a)
1321 {function(allocator_arg, __a, __f).swap(*this);}
1345 function<_Rp(_A0, _A1, _A2)>::function(const function& __f)
1347 if (__f.__f_ == 0)
1349 else if (__f.__f_ == (const __base*)&__f.__buf_)
1352 __f.__f_->__clone(__f_);
1355 __f_ = __f.__f_->__clone();
1361 const function& __f)
1363 if (__f.__f_ == 0)
1365 else if (__f.__f_ == (const __base*)&__f.__buf_)
1368 __f.__f_->__clone(__f_);
1371 __f_ = __f.__f_->__clone();
1376 function<_Rp(_A0, _A1, _A2)>::function(_Fp __f,
1380 if (__function::__not_null(__f))
1386 ::new (__f_) _FF(__f);
1394 ::new (__hold.get()) _FF(__f, allocator<_Fp>(__a));
1402 function<_Rp(_A0, _A1, _A2)>::function(allocator_arg_t, const _Alloc& __a0, _Fp __f,
1407 if (__function::__not_null(__f))
1413 ::new (__f_) _FF(__f, __a0);
1421 ::new (__hold.get()) _FF(__f, _Alloc(__a));
1429 function<_Rp(_A0, _A1, _A2)>::operator=(const function& __f)
1431 function(__f).swap(*this);
1454 function<_Rp(_A0, _A1, _A2)>::operator=(_Fp __f)
1456 function(_VSTD::move(__f)).swap(*this);
1471 function<_Rp(_A0, _A1, _A2)>::swap(function& __f)
1473 if (_VSTD::addressof(__f) == this)
1475 if (__f_ == (__base*)&__buf_ && __f.__f_ == (__base*)&__f.__buf_)
1482 __f.__f_->__clone((__base*)&__buf_);
1483 __f.__f_->destroy();
1484 __f.__f_ = 0;
1486 __t->__clone((__base*)&__f.__buf_);
1488 __f.__f_ = (__base*)&__f.__buf_;
1492 __f_->__clone((__base*)&__f.__buf_);
1494 __f_ = __f.__f_;
1495 __f.__f_ = (__base*)&__f.__buf_;
1497 else if (__f.__f_ == (__base*)&__f.__buf_)
1499 __f.__f_->__clone((__base*)&__buf_);
1500 __f.__f_->destroy();
1501 __f.__f_ = __f_;
1505 _VSTD::swap(__f_, __f.__f_);
1553 operator==(const function<_Fp>& __f, nullptr_t) {return !__f;}
1558 operator==(nullptr_t, const function<_Fp>& __f) {return !__f;}
1563 operator!=(const function<_Fp>& __f, nullptr_t) {return (bool)__f;}
1568 operator!=(nullptr_t, const function<_Fp>& __f) {return (bool)__f;}