• Home
  • Raw
  • Download

Lines Matching refs:_Tp

18 template <class _Tp>
28 static const bool value = !is_same<decltype(__test((_Tp*)0)), __two>::value;
29 typedef decltype(__test((_Tp*)0)) type;
32 template <class _Tp>
42 static const bool value = !is_same<decltype(__test((_Tp*)0)), __two>::value;
43 typedef decltype(__test((_Tp*)0)) type;
46 template <class _Tp, bool = __derives_from_unary_function<_Tp>::value>
48 : public __derives_from_unary_function<_Tp>::type
52 template <class _Tp>
53 struct __maybe_derive_from_unary_function<_Tp, false>
57 template <class _Tp, bool = __derives_from_binary_function<_Tp>::value>
59 : public __derives_from_binary_function<_Tp>::type
63 template <class _Tp>
64 struct __maybe_derive_from_binary_function<_Tp, false>
68 template <class _Tp, bool = __has_result_type<_Tp>::value>
70 : public __maybe_derive_from_unary_function<_Tp>,
71 public __maybe_derive_from_binary_function<_Tp>
73 typedef typename _Tp::result_type result_type;
76 template <class _Tp>
77 struct __weak_result_type_imp<_Tp, false>
78 : public __maybe_derive_from_unary_function<_Tp>,
79 public __maybe_derive_from_binary_function<_Tp>
83 template <class _Tp>
85 : public __weak_result_type_imp<typename remove_reference<_Tp>::type>
239 // template <class _Tp, bool _HasResultType>
242 // typedef typename _Tp::result_type type;
245 // template <class _Tp>
246 // struct ________ref_return0<_Tp, false>
251 // template <class _Tp, bool _IsClass>
253 // : public ________ref_return0<_Tp, __has_result_type<typename remove_cv<_Tp>::type>::value>
257 // template <class _Tp, bool _HasResultType>
260 // typedef typename __callable_type<_Tp>::result_type type;
263 // template <class _Tp>
264 // struct ______ref_return0<_Tp, false> // pointer to member data
269 // template <class _Tp>
270 // struct ____ref_return0<_Tp, false>
271 // : public ______ref_return0<typename remove_cv<_Tp>::type,
272 // __has_result_type<__callable_type<typename remove_cv<_Tp>::type> >::value>
276 // template <class _Tp>
278 // : public ____ref_return0<typename remove_reference<_Tp>::type,
279 // is_class<typename remove_reference<_Tp>::type>::value>
285 // template <class _Tp, bool _IsClass, class _A0>
288 // typedef typename result_of<_Tp(_A0)>::type type;
291 // template <class _Tp, bool _HasResultType, class _A0>
294 // typedef typename __callable_type<_Tp>::result_type type;
297 // template <class _Tp, class _A0, bool>
313 // template <class _Tp, class _A0>
324 // template <class _Tp, class _A0>
325 // struct ______ref_return1<_Tp, false, _A0> // pointer to member data
326 // : public __ref_return1_member_data<typename remove_cv<_Tp>::type, _A0>
330 // template <class _Tp, class _A0>
331 // struct ____ref_return1<_Tp, false, _A0>
332 // : public ______ref_return1<typename remove_cv<_Tp>::type,
333 // __has_result_type<__callable_type<typename remove_cv<_Tp>::type> >::value, _A0>
337 // template <class _Tp, class _A0>
339 // : public ____ref_return1<typename remove_reference<_Tp>::type,
340 // is_class<typename remove_reference<_Tp>::type>::value, _A0>
346 // template <class _Tp, bool _IsClass, class _A0, class _A1>
349 // typedef typename result_of<_Tp(_A0, _A1)>::type type;
352 // template <class _Tp, bool _HasResultType, class _A0, class _A1>
355 // typedef typename __callable_type<_Tp>::result_type type;
358 // template <class _Tp>
359 // struct ______ref_return2<_Tp, false, class _A0, class _A1> // pointer to member data
361 // static_assert(sizeof(_Tp) == 0, "An attempt has been made to `call` a pointer"
365 // template <class _Tp, class _A0, class _A1>
366 // struct ____ref_return2<_Tp, false, _A0, _A1>
367 // : public ______ref_return2<typename remove_cv<_Tp>::type,
368 // __has_result_type<__callable_type<typename remove_cv<_Tp>::type> >::value, _A0,…
372 // template <class _Tp, class _A0, class _A1>
374 // : public ____ref_return2<typename remove_reference<_Tp>::type,
375 // is_class<typename remove_reference<_Tp>::type>::value, _A0, _A1>
381 // template <class _Tp, bool _IsClass, class _A0, class _A1, class _A2>
384 // typedef typename result_of<_Tp(_A0, _A1, _A2)>::type type;
387 // template <class _Tp, bool _HasResultType, class _A0, class _A1, class _A2>
390 // typedef typename __callable_type<_Tp>::result_type type;
393 // template <class _Tp>
394 // struct ______ref_return3<_Tp, false, class _A0, class _A1, class _A2> // pointer to member data
396 // static_assert(sizeof(_Tp) == 0, "An attempt has been made to `call` a pointer"
400 // template <class _Tp, class _A0, class _A1, class _A2>
401 // struct ____ref_return3<_Tp, false, _A0, _A1, _A2>
402 // : public ______ref_return3<typename remove_cv<_Tp>::type,
403 // __has_result_type<__callable_type<typename remove_cv<_Tp>::type> >::value, _A0,…
407 // template <class _Tp, class _A0, class _A1, class _A2>
409 // : public ____ref_return3<typename remove_reference<_Tp>::type,
410 // is_class<typename remove_reference<_Tp>::type>::value, _A0, _A1, _A2>
416 template <class _Rp, class _Tp, class _T1>
420 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
423 __invoke(_Rp (_Tp::*__f)(), _T1& __t1)
428 template <class _Rp, class _Tp, class _T1, class _A0>
432 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
435 __invoke(_Rp (_Tp::*__f)(_A0), _T1& __t1, _A0& __a0)
440 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
444 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
447 __invoke(_Rp (_Tp::*__f)(_A0, _A1), _T1& __t1, _A0& __a0, _A1& __a1)
452 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
456 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
459 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2), _T1& __t1, _A0& __a0, _A1& __a1, _A2& __a2)
464 template <class _Rp, class _Tp, class _T1>
468 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
471 __invoke(_Rp (_Tp::*__f)() const, _T1& __t1)
476 template <class _Rp, class _Tp, class _T1, class _A0>
480 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
483 __invoke(_Rp (_Tp::*__f)(_A0) const, _T1& __t1, _A0& __a0)
488 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
492 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
495 __invoke(_Rp (_Tp::*__f)(_A0, _A1) const, _T1& __t1, _A0& __a0, _A1& __a1)
500 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
504 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
507 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2) const, _T1& __t1, _A0& __a0, _A1& __a1, _A2& __a2)
512 template <class _Rp, class _Tp, class _T1>
516 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
519 __invoke(_Rp (_Tp::*__f)() volatile, _T1& __t1)
524 template <class _Rp, class _Tp, class _T1, class _A0>
528 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
531 __invoke(_Rp (_Tp::*__f)(_A0) volatile, _T1& __t1, _A0& __a0)
536 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
540 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
543 __invoke(_Rp (_Tp::*__f)(_A0, _A1) volatile, _T1& __t1, _A0& __a0, _A1& __a1)
548 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
552 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
555 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2) volatile, _T1& __t1, _A0& __a0, _A1& __a1, _A2& __a2)
560 template <class _Rp, class _Tp, class _T1>
564 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
567 __invoke(_Rp (_Tp::*__f)() const volatile, _T1& __t1)
572 template <class _Rp, class _Tp, class _T1, class _A0>
576 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
579 __invoke(_Rp (_Tp::*__f)(_A0) const volatile, _T1& __t1, _A0& __a0)
584 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
588 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
591 __invoke(_Rp (_Tp::*__f)(_A0, _A1) const volatile, _T1& __t1, _A0& __a0, _A1& __a1)
596 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
600 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
603 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2) const volatile, _T1& __t1, _A0& __a0, _A1& __a1, _A2& __a2)
610 template <class _Rp, class _Tp, class _T1>
614 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
617 __invoke(_Rp (_Tp::*__f)(), _T1 __t1)
622 template <class _Rp, class _Tp, class _T1, class _A0>
626 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
629 __invoke(_Rp (_Tp::*__f)(_A0), _T1 __t1, _A0& __a0)
634 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
638 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
641 __invoke(_Rp (_Tp::*__f)(_A0, _A1), _T1 __t1, _A0& __a0, _A1& __a1)
646 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
650 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
653 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2), _T1 __t1, _A0& __a0, _A1& __a1, _A2& __a2)
658 template <class _Rp, class _Tp, class _T1>
662 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
665 __invoke(_Rp (_Tp::*__f)() const, _T1 __t1)
670 template <class _Rp, class _Tp, class _T1, class _A0>
674 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
677 __invoke(_Rp (_Tp::*__f)(_A0) const, _T1 __t1, _A0& __a0)
682 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
686 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
689 __invoke(_Rp (_Tp::*__f)(_A0, _A1) const, _T1 __t1, _A0& __a0, _A1& __a1)
694 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
698 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
701 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2) const, _T1 __t1, _A0& __a0, _A1& __a1, _A2& __a2)
706 template <class _Rp, class _Tp, class _T1>
710 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
713 __invoke(_Rp (_Tp::*__f)() volatile, _T1 __t1)
718 template <class _Rp, class _Tp, class _T1, class _A0>
722 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
725 __invoke(_Rp (_Tp::*__f)(_A0) volatile, _T1 __t1, _A0& __a0)
730 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
734 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
737 __invoke(_Rp (_Tp::*__f)(_A0, _A1) volatile, _T1 __t1, _A0& __a0, _A1& __a1)
742 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
746 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
749 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2) volatile, _T1 __t1, _A0& __a0, _A1& __a1, _A2& __a2)
754 template <class _Rp, class _Tp, class _T1>
758 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
761 __invoke(_Rp (_Tp::*__f)() const volatile, _T1 __t1)
766 template <class _Rp, class _Tp, class _T1, class _A0>
770 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
773 __invoke(_Rp (_Tp::*__f)(_A0) const volatile, _T1 __t1, _A0& __a0)
778 template <class _Rp, class _Tp, class _T1, class _A0, class _A1>
782 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
785 __invoke(_Rp (_Tp::*__f)(_A0, _A1) const volatile, _T1 __t1, _A0& __a0, _A1& __a1)
790 template <class _Rp, class _Tp, class _T1, class _A0, class _A1, class _A2>
794 !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
797 __invoke(_Rp (_Tp::*__f)(_A0, _A1, _A2) const volatile, _T1 __t1, _A0& __a0, _A1& __a1, _A2& __a2)
804 template <class _Rp, class _Tp, class _T1>
808 is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
811 __invoke(_Rp _Tp::* __f, _T1& __t1)
816 template <class _Rp, class _Tp>
819 __invoke(_Rp _Tp::*)
823 // template <class _Dp, class _Rp, class _Tp, class _T1>
827 // is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
828 // typename __ref_return1<_Rp _Tp::*, _T1>::type
830 // __invoke(_Rp _Tp::* __f, _T1& __t1)
848 template <class _Rp, class _Tp, class _T1>
851 !is_base_of<_Tp,
855 __invoke(_Rp _Tp::* __f, _T1& __t1)
860 // template <class _Dp, class _Rp, class _Tp, class _T1>
864 // !is_base_of<_Tp, typename remove_reference<_T1>::type>::value,
865 // typename __ref_return1<_Rp _Tp::*, _T1>::type
867 // __invoke(_Rp _Tp::* __f, _T1 __t1)
942 template <class _Tp>
950 static const bool value = sizeof(__test<_Tp>(0)) == 1;
965 template <class _Tp, class _A0>
968 typedef decltype(__invoke(_VSTD::declval<_Tp>(), _VSTD::declval<_A0>())) type;
971 template <class _Rp, class _Tp, class _A0>
972 struct __invoke_return0<_Rp _Tp::*, _A0>
977 template <class _Rp, class _Tp, class _A0>
978 struct __invoke_return0<_Rp _Tp::*, _A0*>
983 template <class _Tp, class _A0, class _A1>
986 typedef decltype(__invoke(_VSTD::declval<_Tp>(), _VSTD::declval<_A0>(),
990 template <class _Tp, class _A0, class _A1, class _A2>
993 typedef decltype(__invoke(_VSTD::declval<_Tp>(), _VSTD::declval<_A0>(),
998 template <class _Tp>
1000 : public __weak_result_type<_Tp>
1004 typedef _Tp type;
1050 template <class _Tp> struct __is_reference_wrapper_impl : public false_type {};
1051 template <class _Tp> struct __is_reference_wrapper_impl<reference_wrapper<_Tp> > : public true_type…
1052 template <class _Tp> struct __is_reference_wrapper
1053 : public __is_reference_wrapper_impl<typename remove_cv<_Tp>::type> {};
1055 template <class _Tp>
1057 reference_wrapper<_Tp>
1058 ref(_Tp& __t)
1060 return reference_wrapper<_Tp>(__t);
1063 template <class _Tp>
1065 reference_wrapper<_Tp>
1066 ref(reference_wrapper<_Tp> __t)
1071 template <class _Tp>
1073 reference_wrapper<const _Tp>
1074 cref(const _Tp& __t)
1076 return reference_wrapper<const _Tp>(__t);
1079 template <class _Tp>
1081 reference_wrapper<const _Tp>
1082 cref(reference_wrapper<_Tp> __t)