tmp/tmpbpy2h1t8/{from.md → to.md}
RENAMED
|
@@ -1,26 +1,20 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
-
template<class T> struct is_bind_expression
|
| 6 |
-
: integral_constant<bool, see below> { };
|
| 7 |
}
|
| 8 |
```
|
| 9 |
|
| 10 |
`is_bind_expression` can be used to detect function objects generated by
|
| 11 |
-
`bind`. `bind` uses `is_bind_expression` to detect subexpressions.
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
`
|
| 20 |
-
|
| 21 |
-
Users may specialize this template to indicate a placeholder type.
|
| 22 |
-
|
| 23 |
-
If `T` is the type of `std::placeholders::_J`, `is_placeholder<T>` shall
|
| 24 |
-
be publicly derived from `integral_constant<int, J>`, otherwise from
|
| 25 |
-
`integral_constant<int, 0>`.
|
| 26 |
|
|
|
|
| 1 |
+
#### Class template `is_bind_expression` <a id="func.bind.isbind">[[func.bind.isbind]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 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 objects generated by
|
| 10 |
+
`bind`. `bind` uses `is_bind_expression` to detect subexpressions.
|
| 11 |
+
|
| 12 |
+
Instantiations of the `is_bind_expression` template shall meet the
|
| 13 |
+
UnaryTypeTrait requirements ([[meta.rqmts]]). The implementation shall
|
| 14 |
+
provide a definition that has a BaseCharacteristic of `true_type` if `T`
|
| 15 |
+
is a type returned from `bind`, otherwise it shall have a
|
| 16 |
+
BaseCharacteristic of `false_type`. A program may specialize this
|
| 17 |
+
template for a user-defined type `T` to have a BaseCharacteristic of
|
| 18 |
+
`true_type` to indicate that `T` should be treated as a subexpression in
|
| 19 |
+
a `bind` call.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|