From Jason Turner

[format.arg.store]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpihudk8f3/{from.md → to.md} +10 -7
tmp/tmpihudk8f3/{from.md → to.md} RENAMED
@@ -1,32 +1,35 @@
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
 
 
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
+ class format-arg-store { // exposition only
7
+ array<basic_format_arg<Context>, sizeof...(Args)> args; // exposition only
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(Args&&... fmt_args);
17
  ```
18
 
19
  *Preconditions:* The type
20
+ `typename Context::template formatter_type<remove_cvref_t<``Tᵢ``>>`
21
+ meets the requirements [[formatter.requirements]] for each `Tᵢ` in
22
+ `Args`.
23
 
24
+ *Returns:* An object of type *`format-arg-store`*`<Context, Args...>`
25
+ whose *args* data member is initialized with
26
+ `{basic_format_arg<Context>(fmt_args)...}`.
27
 
28
  ``` cpp
29
  template<class... Args>
30
+ format-arg-store<wformat_context, Args...> make_wformat_args(Args&&... args);
31
  ```
32
 
33
  *Effects:* Equivalent to:
34
  `return make_format_args<wformat_context>(args...);`
35