56 #ifndef _BACKWARD_BINDERS_H
57 #define _BACKWARD_BINDERS_H 1
59 namespace std _GLIBCXX_VISIBILITY(default)
61 _GLIBCXX_BEGIN_NAMESPACE_VERSION
103 template<
typename _Operation>
105 :
public unary_function<typename _Operation::second_argument_type,
106 typename _Operation::result_type>
110 typename _Operation::first_argument_type value;
114 const typename _Operation::first_argument_type& __y)
115 : op(__x), value(__y) { }
117 typename _Operation::result_type
118 operator()(
const typename _Operation::second_argument_type& __x)
const
119 {
return op(value, __x); }
123 typename _Operation::result_type
124 operator()(
typename _Operation::second_argument_type& __x)
const
125 {
return op(value, __x); }
126 } _GLIBCXX_DEPRECATED;
129 template<
typename _Operation,
typename _Tp>
131 bind1st(
const _Operation& __fn,
const _Tp& __x)
133 typedef typename _Operation::first_argument_type _Arg1_type;
138 template<
typename _Operation>
141 typename _Operation::result_type>
145 typename _Operation::second_argument_type value;
149 const typename _Operation::second_argument_type& __y)
150 : op(__x), value(__y) { }
152 typename _Operation::result_type
153 operator()(
const typename _Operation::first_argument_type& __x)
const
154 {
return op(__x, value); }
158 typename _Operation::result_type
159 operator()(
typename _Operation::first_argument_type& __x)
const
160 {
return op(__x, value); }
161 } _GLIBCXX_DEPRECATED;
164 template<
typename _Operation,
typename _Tp>
166 bind2nd(
const _Operation& __fn,
const _Tp& __x)
168 typedef typename _Operation::second_argument_type _Arg2_type;
173 _GLIBCXX_END_NAMESPACE_VERSION
One of the binder functors.
binder2nd< _Operation > bind2nd(const _Operation &__fn, const _Tp &__x)
One of the binder functors.
One of the binder functors.
ISO C++ entities toplevel namespace is std.
binder1st< _Operation > bind1st(const _Operation &__fn, const _Tp &__x)
One of the binder functors.