tmp/tmps8dz14rr/{from.md → to.md}
RENAMED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
### Function template `mem_fn` <a id="func.memfn">[[func.memfn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
template<class R, class T> unspecified mem_fn(R T::* pm) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Returns:* A simple call wrapper
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
|
|
|
| 1 |
### Function template `mem_fn` <a id="func.memfn">[[func.memfn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
template<class R, class T> constexpr unspecified mem_fn(R T::* pm) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Returns:* A simple call wrapper [[func.def]] `fn` with call pattern
|
| 8 |
+
`invoke(pmd, call_args...)`, where `pmd` is the target object of `fn` of
|
| 9 |
+
type `R T::*` direct-non-list-initialized with `pm`, and `call_args` is
|
| 10 |
+
an argument pack used in a function call expression [[expr.call]] of
|
| 11 |
+
`pm`.
|
| 12 |
|