tmp/tmplc8yxvod/{from.md → to.md}
RENAMED
|
@@ -6,12 +6,10 @@ namespace std {
|
|
| 6 |
class basic_format_args {
|
| 7 |
size_t size_; // exposition only
|
| 8 |
const basic_format_arg<Context>* data_; // exposition only
|
| 9 |
|
| 10 |
public:
|
| 11 |
-
basic_format_args() noexcept;
|
| 12 |
-
|
| 13 |
template<class... Args>
|
| 14 |
basic_format_args(const format-arg-store<Context, Args...>& store) noexcept;
|
| 15 |
|
| 16 |
basic_format_arg<Context> get(size_t i) const noexcept;
|
| 17 |
};
|
|
@@ -20,22 +18,19 @@ namespace std {
|
|
| 20 |
basic_format_args(format-arg-store<Context, Args...>) -> basic_format_args<Context>;
|
| 21 |
}
|
| 22 |
```
|
| 23 |
|
| 24 |
An instance of `basic_format_args` provides access to formatting
|
| 25 |
-
arguments.
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
[*Note 1*: For example, by storing indices of type alternatives
|
| 29 |
separately from values and packing the former. — *end note*]
|
| 30 |
|
| 31 |
-
``` cpp
|
| 32 |
-
basic_format_args() noexcept;
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
*Effects:* Initializes `size_` with `0`.
|
| 36 |
-
|
| 37 |
``` cpp
|
| 38 |
template<class... Args>
|
| 39 |
basic_format_args(const format-arg-store<Context, Args...>& store) noexcept;
|
| 40 |
```
|
| 41 |
|
|
|
|
| 6 |
class basic_format_args {
|
| 7 |
size_t size_; // exposition only
|
| 8 |
const basic_format_arg<Context>* data_; // exposition only
|
| 9 |
|
| 10 |
public:
|
|
|
|
|
|
|
| 11 |
template<class... Args>
|
| 12 |
basic_format_args(const format-arg-store<Context, Args...>& store) noexcept;
|
| 13 |
|
| 14 |
basic_format_arg<Context> get(size_t i) const noexcept;
|
| 15 |
};
|
|
|
|
| 18 |
basic_format_args(format-arg-store<Context, Args...>) -> basic_format_args<Context>;
|
| 19 |
}
|
| 20 |
```
|
| 21 |
|
| 22 |
An instance of `basic_format_args` provides access to formatting
|
| 23 |
+
arguments.
|
| 24 |
+
|
| 25 |
+
*Recommended practice:* Implementations should optimize the
|
| 26 |
+
representation of `basic_format_args` for a small number of formatting
|
| 27 |
+
arguments.
|
| 28 |
|
| 29 |
[*Note 1*: For example, by storing indices of type alternatives
|
| 30 |
separately from values and packing the former. — *end note*]
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
``` cpp
|
| 33 |
template<class... Args>
|
| 34 |
basic_format_args(const format-arg-store<Context, Args...>& store) noexcept;
|
| 35 |
```
|
| 36 |
|