tmp/tmpgdrn_eii/{from.md → to.md}
RENAMED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
### Class template `binder2nd` <a id="depr.lib.binder.2nd">[[depr.lib.binder.2nd]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
template <class Fn>
|
| 5 |
-
class binder2nd
|
| 6 |
-
: public unary_function<typename Fn::first_argument_type,
|
| 7 |
-
typename Fn::result_type> {
|
| 8 |
-
protected:
|
| 9 |
-
Fn op;
|
| 10 |
-
typename Fn::second_argument_type value;
|
| 11 |
-
public:
|
| 12 |
-
binder2nd(const Fn& x,
|
| 13 |
-
const typename Fn::second_argument_type& y);
|
| 14 |
-
typename Fn::result_type
|
| 15 |
-
operator()(const typename Fn::first_argument_type& x) const;
|
| 16 |
-
typename Fn::result_type
|
| 17 |
-
operator()(typename Fn::first_argument_type& x) const;
|
| 18 |
-
};
|
| 19 |
-
```
|
| 20 |
-
|
| 21 |
-
The constructor initializes `op` with `x` and `value` with `y`.
|
| 22 |
-
|
| 23 |
-
`operator()` returns `op``(x,value)`.
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|