tmp/tmphuq2xzzj/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### `queryable` concept <a id="exec.queryable.concept">[[exec.queryable.concept]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
template<class T>
|
| 6 |
+
concept queryable = destructible<T>; // exposition only
|
| 7 |
+
}
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
The exposition-only `queryable` concept specifies the constraints on the
|
| 11 |
+
types of queryable objects.
|
| 12 |
+
|
| 13 |
+
Let `env` be an object of type `Env`. The type `Env` models `queryable`
|
| 14 |
+
if for each callable object `q` and a pack of subexpressions `args`, if
|
| 15 |
+
`requires { q(env, args...) }` is `true` then `q(env, args...)` meets
|
| 16 |
+
any semantic requirements imposed by `q`.
|
| 17 |
+
|