tmp/tmppgl2qs9r/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Class template *`format-arg-store`* <a id="format.arg.store">[[format.arg.store]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
template<class Context, class... Args>
|
| 6 |
+
struct format-arg-store { // exposition only
|
| 7 |
+
array<basic_format_arg<Context>, sizeof...(Args)> args;
|
| 8 |
+
};
|
| 9 |
+
}
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
An instance of *`format-arg-store`* stores formatting arguments.
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
template<class Context = format_context, class... Args>
|
| 16 |
+
format-arg-store<Context, Args...> make_format_args(const Args&... args);
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
*Preconditions:* The type
|
| 20 |
+
`typename Context::template formatter_type<``Tᵢ``>` meets the
|
| 21 |
+
requirements [[formatter.requirements]] for each `Tᵢ` in `Args`.
|
| 22 |
+
|
| 23 |
+
*Returns:* `{basic_format_arg<Context>(args)...}`.
|
| 24 |
+
|
| 25 |
+
``` cpp
|
| 26 |
+
template<class... Args>
|
| 27 |
+
format-arg-store<wformat_context, Args...> make_wformat_args(const Args&... args);
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
*Effects:* Equivalent to:
|
| 31 |
+
`return make_format_args<wformat_context>(args...);`
|
| 32 |
+
|