File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
``` cpp
8
8
namespace std {
9
9
template <class charT >
10
- concept fmt-iter-for = output_iterator<const charT&> ;
10
+ using fmt-iter-for = / * unspecified * / ;
11
11
12
12
template <class T, class charT>
13
13
concept formattable =
@@ -23,6 +23,8 @@ namespace std {
23
23
};
24
24
}
25
25
```
26
+ * fmt-iter-for[italic]
27
+ * unspecified[italic]
26
28
* formatter[link formatter.md]
27
29
* semiregular[link /reference/concepts/semiregular.md]
28
30
* basic_format_context[link basic_format_context.md]
@@ -33,6 +35,7 @@ namespace std {
33
35
34
36
このコンセプトを使用することで、[`formatter`](formatter.md)クラステンプレートが使用したい型で特殊化されているかをチェックできる。
35
37
38
+ `formattable`コンセプトの定義において使用されている`fmt-iter-for<charT>`は、[`output_iterator<const charT&>`](/reference/iterator/output_iterator.md)コンセプトのモデルとなる未規定の型である。
36
39
37
40
## 例
38
41
```cpp example
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public:
92
92
// format()関数は書式の情報をもたない。
93
93
// parse()関数で解析した書式をメンバ変数で保持しておいて、
94
94
// それをもとに書式化する
95
- auto format(MyVector<T>& & v, std::format_context& fctx) const {
95
+ auto format(const MyVector<T>& v, std::format_context& fctx) const {
96
96
if (is_colon) {
97
97
auto out = fctx.out();
98
98
bool is_first = true;
You can’t perform that action at this time.
0 commit comments