Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic_format_context : out, advance_to, localeを追加
- Loading branch information
1 parent
bc11699
commit 410c572
Showing
5 changed files
with
127 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# advance_to | ||
* format[meta header] | ||
* function[meta id-type] | ||
* std[meta namespace] | ||
* basic_format_context[meta class] | ||
* cpp20[meta cpp] | ||
|
||
```cpp | ||
void advance_to(iterator it); | ||
``` | ||
* basic_format_arg[link /reference/format/basic_format_arg.md] | ||
* basic_format_context[link /reference/format/basic_format_context.md] | ||
## 概要 | ||
出力イテレータを指定したイテレータに設定する。 | ||
## 効果 | ||
以下と等価: | ||
```cpp | ||
out_ = std::move(it); | ||
``` | ||
* std::move[link /reference/utility/move.md] | ||
|
||
ここで`out_`は、メンバ変数として保持している出力イテレータである。 | ||
|
||
|
||
## バージョン | ||
### 言語 | ||
- C++20 | ||
|
||
### 処理系 | ||
- [Clang](/implementation.md#clang): ?? | ||
- [GCC](/implementation.md#gcc): 13 | ||
- [Visual C++](/implementation.md#visual_cpp): ?? | ||
|
||
## 参照 | ||
|
||
- [P0645R10 Text Formatting](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0645r10.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
# arg | ||
|
||
* format[meta header] | ||
* function[meta id-type] | ||
* std[meta namespace] | ||
* basic_format_context[meta class] | ||
* cpp20[meta cpp] | ||
|
||
```cpp | ||
basic_format_arg<basic_format_context> arg(size_t id) const | ||
basic_format_arg<basic_format_context> arg(size_t id) const; | ||
``` | ||
* basic_format_arg[link /reference/format/basic_format_arg.md] | ||
* basic_format_context[link /reference/format/basic_format_context.md] | ||
## 概要 | ||
`i`番目のフォーマット引数を得る。`i`が範囲外の場合、`basic_format_arg<basic_format_context>`のデフォルト値を返す。 | ||
`i`番目のフォーマット引数を取得する。`i`が範囲外の場合、`basic_format_arg<basic_format_context>`のデフォルト値を返す。 | ||
## バージョン | ||
### 言語 | ||
- C++20 | ||
### 処理系 | ||
- [Clang](/implementation.md#clang): ?? | ||
- [GCC](/implementation.md#gcc): ?? | ||
- [GCC](/implementation.md#gcc): 13 | ||
- [ICC](/implementation.md#icc): ?? | ||
- [Visual C++](/implementation.md#visual_cpp): ?? | ||
## 参照 | ||
* [P0645R10 Text Formatting](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0645r10.html) | ||
- [P0645R10 Text Formatting](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0645r10.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# locale | ||
* format[meta header] | ||
* function[meta id-type] | ||
* std[meta namespace] | ||
* basic_format_context[meta class] | ||
* cpp20[meta cpp] | ||
|
||
```cpp | ||
std::locale locale(); | ||
``` | ||
* std::locale[link /reference/locale/locale.md] | ||
|
||
## 概要 | ||
ロケールを取得する。 | ||
|
||
|
||
## 効果 | ||
文字列フォーマット関数に指定されたロケールオブジェクトがあればそれを返し、そうでなければ[`std::locale()`](/reference/locale/locale.md)を返す。 | ||
|
||
|
||
## バージョン | ||
### 言語 | ||
- C++20 | ||
|
||
### 処理系 | ||
- [Clang](/implementation.md#clang): ?? | ||
- [GCC](/implementation.md#gcc): 13 | ||
- [Visual C++](/implementation.md#visual_cpp): ?? | ||
|
||
## 参照 | ||
|
||
- [P0645R10 Text Formatting](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0645r10.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# out | ||
* format[meta header] | ||
* function[meta id-type] | ||
* std[meta namespace] | ||
* basic_format_context[meta class] | ||
* cpp20[meta cpp] | ||
|
||
```cpp | ||
iterator out(); | ||
``` | ||
* basic_format_arg[link /reference/format/basic_format_arg.md] | ||
* basic_format_context[link /reference/format/basic_format_context.md] | ||
|
||
## 概要 | ||
出力イテレータを取得する。 | ||
|
||
|
||
## 効果 | ||
以下と等価: | ||
|
||
```cpp | ||
return std::move(out_); | ||
``` | ||
* std::move[link /reference/utility/move.md] | ||
|
||
ここで`out_`は、メンバ変数として保持している出力イテレータである。 | ||
|
||
|
||
## バージョン | ||
### 言語 | ||
- C++20 | ||
|
||
### 処理系 | ||
- [Clang](/implementation.md#clang): ?? | ||
- [GCC](/implementation.md#gcc): 13 | ||
- [Visual C++](/implementation.md#visual_cpp): ?? | ||
|
||
## 参照 | ||
|
||
- [P0645R10 Text Formatting](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0645r10.html) |