tmp/tmp20nn7fo2/{from.md → to.md}
RENAMED
|
@@ -4,17 +4,18 @@
|
|
| 4 |
namespace std {
|
| 5 |
template<class T> struct is_bind_expression; // see below
|
| 6 |
}
|
| 7 |
```
|
| 8 |
|
| 9 |
-
`is_bind_expression` can be used to detect function
|
| 10 |
-
`bind`.
|
|
|
|
| 11 |
|
| 12 |
Instantiations of the `is_bind_expression` template shall meet the
|
| 13 |
-
UnaryTypeTrait requirements ([[meta.rqmts]]). The implementation
|
| 14 |
-
provide a definition that has a
|
| 15 |
-
is a type returned from `bind`, otherwise it shall have a
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
|
|
|
| 4 |
namespace std {
|
| 5 |
template<class T> struct is_bind_expression; // see below
|
| 6 |
}
|
| 7 |
```
|
| 8 |
|
| 9 |
+
The class template `is_bind_expression` can be used to detect function
|
| 10 |
+
objects generated by `bind`. The function template `bind` uses
|
| 11 |
+
`is_bind_expression` to detect subexpressions.
|
| 12 |
|
| 13 |
Instantiations of the `is_bind_expression` template shall meet the
|
| 14 |
+
`UnaryTypeTrait` requirements ([[meta.rqmts]]). The implementation
|
| 15 |
+
shall provide a definition that has a base characteristic of `true_type`
|
| 16 |
+
if `T` is a type returned from `bind`, otherwise it shall have a base
|
| 17 |
+
characteristic of `false_type`. A program may specialize this template
|
| 18 |
+
for a user-defined type `T` to have a base characteristic of `true_type`
|
| 19 |
+
to indicate that `T` should be treated as a subexpression in a `bind`
|
| 20 |
+
call.
|
| 21 |
|