2
2
<feed xmlns =" http://www.w3.org/2005/Atom" >
3
3
<title >cpprefjp - C++日本語リファレンス</title >
4
4
<link href =" https://cpprefjp.github.io" />
5
- <updated >2025-07-16T10:20:26.245069 </updated >
6
- <id >2f434097-65a7-4d88-9bca-f5a14784d557 </id >
5
+ <updated >2025-07-16T11:52:22.659978 </updated >
6
+ <id >46b62457-8cff-44a0-b9f2-98c3bda15496 </id >
7
7
8
8
9
+ <entry >
10
+ <title >make_format_args -- vformat, make_format_args : 実行時文字列のフォーマット引数で用途があるので説明と例を追加</title >
11
+ <link href =" https://cpprefjp.github.io/reference/format/make_format_args.html" />
12
+ <id >bb07e7c90e1f5d510ae07e6b02a9d1f66e0af757:reference/format/make_format_args.md</id >
13
+ <updated >2025-07-16T20:48:27+09:00</updated >
14
+
15
+ <summary type =" html" >< pre>< code> diff --git a/reference/format/make_format_args.md b/reference/format/make_format_args.md
16
+ index 3e4ffefad..6b189c1da 100644
17
+ --- a/reference/format/make_format_args.md
18
+ +++ b/reference/format/make_format_args.md
19
+ @@ -63,6 +63,27 @@ return make_format_args& lt;wformat_context& gt;(args...);
20
+ ```
21
+ * wformat_context[link /reference/format/basic_format_context.md]
22
+
23
+ +
24
+ +## 例
25
+ +```cpp example
26
+ +#include & lt;iostream& gt;
27
+ +#include & lt;format& gt;
28
+ +
29
+ +int main() {
30
+ + std::string fmt = & #34;0x{:x} 0b{:04b}& #34;;
31
+ + std::string s = std::vformat(fmt, std::make_format_args(10, 6));
32
+ + std::cout & lt;& lt; s & lt;& lt; std::endl;
33
+ +}
34
+ +```
35
+ +* std::make_format_args[color ff0000]
36
+ +* std::vformat[link vformat.md]
37
+ +
38
+ +### 出力
39
+ +```
40
+ +0xa 0b0110
41
+ +```
42
+ +
43
+ +
44
+ ## 実装例
45
+ ```cpp
46
+ namespace std {
47
+ @@ -87,9 +108,8 @@ namespace std {
48
+ - C++20
49
+
50
+ ### 処理系
51
+ -- [Clang](/implementation.md#clang): ??
52
+ -- [GCC](/implementation.md#gcc): ??
53
+ -- [ICC](/implementation.md#icc): ??
54
+ +- [Clang](/implementation.md#clang): 17
55
+ +- [GCC](/implementation.md#gcc): 13
56
+ - [Visual C++](/implementation.md#visual_cpp): ??
57
+
58
+ ## 参照
59
+ < /code>< /pre> </summary >
60
+
61
+ <author >
62
+ <name >Akira Takahashi</name >
63
+
64
+ </author >
65
+ </entry >
66
+
67
+ <entry >
68
+ <title >vformat -- vformat, make_format_args : 実行時文字列のフォーマット引数で用途があるので説明と例を追加</title >
69
+ <link href =" https://cpprefjp.github.io/reference/format/vformat.html" />
70
+ <id >bb07e7c90e1f5d510ae07e6b02a9d1f66e0af757:reference/format/vformat.md</id >
71
+ <updated >2025-07-16T20:48:27+09:00</updated >
72
+
73
+ <summary type =" html" >< pre>< code> diff --git a/reference/format/vformat.md b/reference/format/vformat.md
74
+ index da0cfc5d2..06b2389e4 100644
75
+ --- a/reference/format/vformat.md
76
+ +++ b/reference/format/vformat.md
77
+ @@ -32,8 +32,12 @@ namespace std {
78
+ * (3): マルチバイト文字列版 (ロケール指定あり)
79
+ * (4): ワイド文字列版 (ロケール指定あり)
80
+
81
+ -[`format`](format.md)のフォーマット引数を型消去したバージョンであり、内部的に使用される。文字列をフォーマットする目的で直接利用する必要はない。
82
+ -ただし、[`format`](format.md)のような関数を自作する場合は、`vformat`を使って実装すると便利である。
83
+ +[`std::format()`](format.md)関数のフォーマット引数を実行時文字列にしたバージョンであり、[`std::format()`](format.md)関数の内部で使用される。
84
+ +
85
+ +[`std::format()`](format.md)のような関数を自作する場合にこの関数を使って実装すると便利であるほか、実行時文字列でフォーマット引数を構築したい場合にも利用できる。
86
+ +
87
+ +C++26以降は、実行時文字列のフォーマット引数を使用したい場合は、[`std::runtime_format()`](runtime_format.md)関数を使用できる。
88
+ +
89
+
90
+ ## 戻り値
91
+
92
+ @@ -43,6 +47,26 @@ namespace std {
93
+
94
+ フォーマット実行時に失敗した場合、[`format_error`](format_error.md)を投げる。
95
+
96
+ +## 例
97
+ +```cpp example
98
+ +#include & lt;iostream& gt;
99
+ +#include & lt;format& gt;
100
+ +
101
+ +int main() {
102
+ + std::string fmt = & #34;0x{:x} 0b{:04b}& #34;;
103
+ + std::string s = std::vformat(fmt, std::make_format_args(10, 6));
104
+ + std::cout & lt;& lt; s & lt;& lt; std::endl;
105
+ +}
106
+ +```
107
+ +* std::vformat[color ff0000]
108
+ +* std::make_format_args[link make_format_args.md]
109
+ +
110
+ +### 出力
111
+ +```
112
+ +0xa 0b0110
113
+ +```
114
+ +
115
+ +
116
+ ## 実装例
117
+
118
+ ```cpp
119
+ @@ -84,9 +108,8 @@ string vformat(const locale& amp; loc, wstring_view fmt, wformat_args args) {
120
+ - C++20
121
+
122
+ ### 処理系
123
+ -- [Clang](/implementation.md#clang): ??
124
+ -- [GCC](/implementation.md#gcc): ??
125
+ -- [ICC](/implementation.md#icc): ??
126
+ +- [Clang](/implementation.md#clang): 17
127
+ +- [GCC](/implementation.md#gcc): 13
128
+ - [Visual C++](/implementation.md#visual_cpp): ??
129
+
130
+ ## 参照
131
+ < /code>< /pre> </summary >
132
+
133
+ <author >
134
+ <name >Akira Takahashi</name >
135
+
136
+ </author >
137
+ </entry >
138
+
9
139
<entry >
10
140
<title >type -- type_infoへのリンクがあってほしいと思ったので追加</title >
11
141
<link href =" https://cpprefjp.github.io/reference/any/any/type.html" />
@@ -3609,67 +3739,4 @@ index a5086d370..f03079433 100644
3609
3739
</author >
3610
3740
</entry >
3611
3741
3612
- <entry >
3613
- <title >visit_format_arg -- style(utility,format): " see{[-_] => }below" の書き換え</title >
3614
- <link href =" https://cpprefjp.github.io/reference/format/visit_format_arg.html" />
3615
- <id >7e1ca38527be6c6902b09b1d87c429541c33dbcf:reference/format/visit_format_arg.md</id >
3616
- <updated >2025-07-14T23:14:09+09:00</updated >
3617
-
3618
- <summary type =" html" >< pre>< code> diff --git a/reference/format/visit_format_arg.md b/reference/format/visit_format_arg.md
3619
- index 70a514b1e..917cfc8cf 100644
3620
- --- a/reference/format/visit_format_arg.md
3621
- +++ b/reference/format/visit_format_arg.md
3622
- @@ -8,10 +8,9 @@
3623
- ```cpp
3624
- namespace std {
3625
- template& lt;class Visitor, class Context& gt;
3626
- - see_below visit_format_arg(Visitor& amp;& amp; vis, basic_format_arg& lt;Context& gt; arg); // (1)
3627
- + see below visit_format_arg(Visitor& amp;& amp; vis, basic_format_arg& lt;Context& gt; arg); // (1)
3628
- }
3629
- ```
3630
- -* see_below[italic]
3631
- * basic_format_arg[link /reference/format/basic_format_arg.md]
3632
-
3633
- ## 概要
3634
- < /code>< /pre> </summary >
3635
-
3636
- <author >
3637
- <name >Koichi Murase</name >
3638
-
3639
- </author >
3640
- </entry >
3641
-
3642
- <entry >
3643
- <title >forward_like -- style(utility,format): " see{[-_] => }below" の書き換え</title >
3644
- <link href =" https://cpprefjp.github.io/reference/utility/forward_like.html" />
3645
- <id >7e1ca38527be6c6902b09b1d87c429541c33dbcf:reference/utility/forward_like.md</id >
3646
- <updated >2025-07-14T23:14:09+09:00</updated >
3647
-
3648
- <summary type =" html" >< pre>< code> diff --git a/reference/utility/forward_like.md b/reference/utility/forward_like.md
3649
- index 3ecbe937b..3c87bd84d 100644
3650
- --- a/reference/utility/forward_like.md
3651
- +++ b/reference/utility/forward_like.md
3652
- @@ -8,12 +8,11 @@
3653
- namespace std {
3654
- template & lt;class T, class U& gt;
3655
- [[nodiscard]]
3656
- -constexpr auto forward_like(U& amp;& amp; x) noexcept -& gt; see-below; // (1) C++23
3657
- +constexpr auto forward_like(U& amp;& amp; x) noexcept -& gt; see below; // (1) C++23
3658
- template & lt;class T, class U& gt;
3659
- -constexpr auto forward_like(U& amp;& amp; x) noexcept -& gt; see-below; // (1) C++26
3660
- +constexpr auto forward_like(U& amp;& amp; x) noexcept -& gt; see below; // (1) C++26
3661
- }
3662
- ```
3663
- -* see-below[italic]
3664
-
3665
- ## 概要
3666
- 第一テンプレート引数の`const`性と参照修飾を用いて関数テンプレートの引数を転送する。
3667
- < /code>< /pre> </summary >
3668
-
3669
- <author >
3670
- <name >Koichi Murase</name >
3671
-
3672
- </author >
3673
- </entry >
3674
-
3675
3742
</feed >
0 commit comments