Lines Matching defs:_Result
64 template<class _Result, class _Tp>
65 class _Mem_fun0_ptr : public unary_function<_Tp*, _Result> {
67 typedef _Result (_Tp::*__fun_type) ();
71 _Result operator ()(_Tp* __p) const { return (__p->*_M_f)(); }
77 template<class _Result, class _Tp, class _Arg>
78 class _Mem_fun1_ptr : public binary_function<_Tp*,_Arg,_Result> {
80 typedef _Result (_Tp::*__fun_type) (_Arg);
84 _Result operator ()(_Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); }
90 template<class _Result, class _Tp>
91 class _Const_mem_fun0_ptr : public unary_function<const _Tp*,_Result> {
93 typedef _Result (_Tp::*__fun_type) () const;
97 _Result operator ()(const _Tp* __p) const { return (__p->*_M_f)(); }
103 template<class _Result, class _Tp, class _Arg>
104 class _Const_mem_fun1_ptr : public binary_function<const _Tp*,_Arg,_Result> {
106 typedef _Result (_Tp::*__fun_type) (_Arg) const;
110 _Result operator ()(const _Tp* __p, _Arg __x) const {
117 template<class _Result, class _Tp>
118 class _Mem_fun0_ref : public unary_function<_Tp,_Result> {
120 typedef _Result (_Tp::*__fun_type) ();
124 _Result operator ()(_Tp& __p) const { return (__p.*_M_f)(); }
130 template<class _Result, class _Tp, class _Arg>
131 class _Mem_fun1_ref : public binary_function<_Tp,_Arg,_Result> {
133 typedef _Result (_Tp::*__fun_type) (_Arg);
137 _Result operator ()(_Tp& __p, _Arg __x) const { return (__p.*_M_f)(__x); }
143 template<class _Result, class _Tp>
144 class _Const_mem_fun0_ref : public unary_function<_Tp,_Result> {
146 typedef _Result (_Tp::*__fun_type) () const;
150 _Result operator ()(const _Tp& __p) const { return (__p.*_M_f)(); }
156 template<class _Result, class _Tp, class _Arg>
157 class _Const_mem_fun1_ref : public binary_function<_Tp,_Arg,_Result> {
159 typedef _Result (_Tp::*__fun_type) (_Arg) const;
163 _Result operator ()(const _Tp& __p, _Arg __x) const { return (__p.*_M_f)(__x); }
169 template<class _Result>
173 typedef _Mem_fun0_ptr<_Result,_Tp> _Ptr;
174 typedef _Const_mem_fun0_ptr<_Result,_Tp> _Ptr_const;
175 typedef _Mem_fun0_ref<_Result,_Tp> _Ref;
176 typedef _Const_mem_fun0_ref<_Result,_Tp> _Ref_const;
181 typedef _Mem_fun1_ptr<_Result,_Tp,_Arg> _Ptr;
182 typedef _Const_mem_fun1_ptr<_Result,_Tp,_Arg> _Ptr_const;
183 typedef _Mem_fun1_ref<_Result,_Tp,_Arg> _Ref;
184 typedef _Const_mem_fun1_ref<_Result,_Tp,_Arg> _Ref_const;
188 template<class _Arg, class _Result>
189 class _Ptr_fun1_base : public unary_function<_Arg, _Result> {
191 typedef _Result (*__fun_type) (_Arg);
195 _Result operator()(_Arg __x) const { return _M_f(__x); }
201 template <class _Arg1, class _Arg2, class _Result>
202 class _Ptr_fun2_base : public binary_function<_Arg1,_Arg2,_Result> {
204 typedef _Result (*__fun_type) (_Arg1, _Arg2);
208 _Result operator()(_Arg1 __x, _Arg2 __y) const { return _M_f(__x, __y); }
214 template<class _Result>
217 typedef _Ptr_fun1_base<_Arg,_Result> _Fun;
221 typedef _Ptr_fun2_base<_Arg1,_Arg2,_Result> _Fun;
388 template<class _Result, class _Arg>
390 public _Ptr_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Arg>::_Fun {
392 typedef typename _Ptr_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Arg>::_Fun _Base;
396 template<class _Result, class _Arg1, class _Arg2>
398 public _Ptr_fun_traits<_Result>::_STLP_TEMPLATE _Args2<_Arg1,_Arg2>::_Fun {
400 typedef typename _Ptr_fun_traits<_Result>::_STLP_TEMPLATE _Args2<_Arg1,_Arg2>::_Fun _Base;
404 template <class _Result, class _Tp>
406 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ptr {
408 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ptr _Base;
413 template <class _Result, class _Tp>
415 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ptr_const {
417 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ptr_const _Base;
422 template <class _Result, class _Tp>
424 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ref {
426 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ref _Base;
431 template <class _Result, class _Tp>
433 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ref_const {
435 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args0<_Tp>::_Ref_const _Base;
440 template <class _Result, class _Tp, class _Arg>
442 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ptr {
444 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ptr _Base;
449 template <class _Result, class _Tp, class _Arg>
451 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ptr_const {
453 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ptr_const _Base;
458 template <class _Result, class _Tp, class _Arg>
460 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ref {
462 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ref _Base;
467 template <class _Result, class _Tp, class _Arg>
469 public _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ref_const {
471 _Mem_fun_traits<_Result>::_STLP_TEMPLATE _Args1<_Tp,_Arg>::_Ref_const _Base;
476 template <class _Arg, class _Result>
478 public _Ptr_fun1<_Result,_Arg> {
480 _Ptr_fun1<_Result,_Arg>::__fun_type __fun_type;
483 : _Ptr_fun1<_Result,_Arg>(__f) {}
486 template <class _Arg1, class _Arg2, class _Result>
488 public _Ptr_fun2<_Result,_Arg1,_Arg2> {
490 _Ptr_fun2<_Result,_Arg1,_Arg2>::__fun_type __fun_type;
493 : _Ptr_fun2<_Result,_Arg1,_Arg2>(__f) {}
579 template <class _Arg, class _Result>
580 class pointer_to_unary_function : public unary_function<_Arg, _Result> {
582 _Result (*_M_ptr)(_Arg);
585 explicit pointer_to_unary_function(_Result (*__x)(_Arg)) : _M_ptr(__x) {}
586 _Result operator()(_Arg __x) const { return _M_ptr(__x); }
589 template <class _Arg1, class _Arg2, class _Result>
591 public binary_function<_Arg1,_Arg2,_Result> {
593 _Result (*_M_ptr)(_Arg1, _Arg2);
596 explicit pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2))
598 _Result operator()(_Arg1 __x, _Arg2 __y) const {
718 template <class _Result, class _Tp>
719 inline mem_fun_t<_Result,_Tp>
720 mem_fun(_Result (_Tp::*__f)()) { return mem_fun_t<_Result,_Tp>(__f); }
722 template <class _Result, class _Tp>
723 inline const_mem_fun_t<_Result,_Tp>
724 mem_fun(_Result (_Tp::*__f)() const) { return const_mem_fun_t<_Result,_Tp>(__f); }
726 template <class _Result, class _Tp>
727 inline mem_fun_ref_t<_Result,_Tp>
728 mem_fun_ref(_Result (_Tp::*__f)()) { return mem_fun_ref_t<_Result,_Tp>(__f); }
730 template <class _Result, class _Tp>
731 inline const_mem_fun_ref_t<_Result,_Tp>
732 mem_fun_ref(_Result (_Tp::*__f)() const) { return const_mem_fun_ref_t<_Result,_Tp>(__f); }
734 template <class _Result, class _Tp, class _Arg>
735 inline mem_fun1_t<_Result,_Tp,_Arg>
736 mem_fun(_Result (_Tp::*__f)(_Arg)) { return mem_fun1_t<_Result,_Tp,_Arg>(__f); }
738 template <class _Result, class _Tp, class _Arg>
739 inline const_mem_fun1_t<_Result,_Tp,_Arg>
740 mem_fun(_Result (_Tp::*__f)(_Arg) const) { return const_mem_fun1_t<_Result,_Tp,_Arg>(__f); }
742 template <class _Result, class _Tp, class _Arg>
743 inline mem_fun1_ref_t<_Result,_Tp,_Arg>
744 mem_fun_ref(_Result (_Tp::*__f)(_Arg)) { return mem_fun1_ref_t<_Result,_Tp,_Arg>(__f); }
746 template <class _Result, class _Tp, class _Arg>
747 inline const_mem_fun1_ref_t<_Result,_Tp,_Arg>
748 mem_fun_ref(_Result (_Tp::*__f)(_Arg) const) { return const_mem_fun1_ref_t<_Result,_Tp,_Arg>(__f); }
753 template <class _Result, class _Tp, class _Arg>
754 inline mem_fun1_t<_Result,_Tp,_Arg>
755 mem_fun1(_Result (_Tp::*__f)(_Arg)) { return mem_fun1_t<_Result,_Tp,_Arg>(__f); }
757 template <class _Result, class _Tp, class _Arg>
758 inline const_mem_fun1_t<_Result,_Tp,_Arg>
759 mem_fun1(_Result (_Tp::*__f)(_Arg) const) { return const_mem_fun1_t<_Result,_Tp,_Arg>(__f); }
761 template <class _Result, class _Tp, class _Arg>
762 inline mem_fun1_ref_t<_Result,_Tp,_Arg>
763 mem_fun1_ref(_Result (_Tp::*__f)(_Arg)) { return mem_fun1_ref_t<_Result,_Tp,_Arg>(__f); }
765 template <class _Result, class _Tp, class _Arg>
766 inline const_mem_fun1_ref_t<_Result,_Tp,_Arg>
767 mem_fun1_ref(_Result (_Tp::*__f)(_Arg) const) { return const_mem_fun1_ref_t<_Result,_Tp,_Arg>(__f); }
773 template <class _Arg, class _Result>
774 inline pointer_to_unary_function<_Arg, _Result>
775 ptr_fun(_Result (*__f)(_Arg))
776 { return pointer_to_unary_function<_Arg, _Result>(__f); }
778 template <class _Arg1, class _Arg2, class _Result>
779 inline pointer_to_binary_function<_Arg1,_Arg2,_Result>
780 ptr_fun(_Result (*__f)(_Arg1, _Arg2))
781 { return pointer_to_binary_function<_Arg1,_Arg2,_Result>(__f); }