22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2025-05-27T05:17:10.251484 </updated >
6- <id >28f7fa7f-26a1-408f-ab0d-a3c8fff92a3b </id >
5+ <updated >2025-05-27T05:22:51.613934 </updated >
6+ <id >f35d90ef-ece6-46af-a2bc-f6caa4107e75 </id >
77
88
9+ <entry >
10+ <title >replace_copy_if -- replace_copy_if : コンパイルエラー修正 #1311</title >
11+ <link href =" https://cpprefjp.github.io/reference/algorithm/ranges_replace_copy_if.html" />
12+ <id >bd1ef79d48ec9fd9f3ac5a7950ab86ea82844b83:reference/algorithm/ranges_replace_copy_if.md</id >
13+ <updated >2025-05-27T14:19:16+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/reference/algorithm/ranges_replace_copy_if.md b/reference/algorithm/ranges_replace_copy_if.md
16+ index 75cd00256..1993964cd 100644
17+ --- a/reference/algorithm/ranges_replace_copy_if.md
18+ +++ b/reference/algorithm/ranges_replace_copy_if.md
19+ @@ -164,7 +164,7 @@ int main() {
20+ // 値が{1, 2}の要素をすべて{9, 9}に置き換えたものを出力する
21+ std::ranges::replace_copy_if(
22+ v,
23+ - std::ostream_iterator& lt;int& gt;(std::cout, & #34;\n& #34;),
24+ + std::ostream_iterator& lt;Point& gt;(std::cout, & #34;\n& #34;),
25+ [](const Point& amp; p) { return p.x == 1 & amp;& amp; p.y == 2; },
26+ {9, 9}
27+ );
28+ < /code>< /pre> </summary >
29+
30+ <author >
31+ <name >Akira Takahashi</name >
32+ 33+ </author >
34+ </entry >
35+
36+ <entry >
37+ <title >replace_copy_if -- replace_copy_if : コンパイルエラー修正 #1311</title >
38+ <link href =" https://cpprefjp.github.io/reference/algorithm/replace_copy_if.html" />
39+ <id >bd1ef79d48ec9fd9f3ac5a7950ab86ea82844b83:reference/algorithm/replace_copy_if.md</id >
40+ <updated >2025-05-27T14:19:16+09:00</updated >
41+
42+ <summary type =" html" >< pre>< code> diff --git a/reference/algorithm/replace_copy_if.md b/reference/algorithm/replace_copy_if.md
43+ index afcf0e642..39692570c 100644
44+ --- a/reference/algorithm/replace_copy_if.md
45+ +++ b/reference/algorithm/replace_copy_if.md
46+ @@ -150,7 +150,7 @@ int main() {
47+ std::replace_copy_if(
48+ v.begin(),
49+ v.end(),
50+ - std::ostream_iterator& lt;int& gt;(std::cout, & #34;\n& #34;),
51+ + std::ostream_iterator& lt;Point& gt;(std::cout, & #34;\n& #34;),
52+ [](const Point& amp; p) { return p.x == 1 & amp;& amp; p.y == 2; },
53+ {9, 9}
54+ );
55+ < /code>< /pre> </summary >
56+
57+ <author >
58+ <name >Akira Takahashi</name >
59+ 60+ </author >
61+ </entry >
62+
963 <entry >
1064 <title >remove_copy -- algorithm/remove_copy : C++26波カッコ初期化に対応 #1311</title >
1165 <link href =" https://cpprefjp.github.io/reference/algorithm/ranges_remove_copy.html" />
@@ -1159,43 +1213,4 @@ index 4726a288f..2b28d0a90 100644
11591213 </author >
11601214 </entry >
11611215
1162- <entry >
1163- <title >replace_copy -- ranges::replace_copy : サンプルコードのミスを修正 #1311</title >
1164- <link href =" https://cpprefjp.github.io/reference/algorithm/ranges_replace_copy.html" />
1165- <id >a2bacbe63b0c1af074a06d1dbfca46289ab492d3:reference/algorithm/ranges_replace_copy.md</id >
1166- <updated >2025-05-26T17:15:23+09:00</updated >
1167-
1168- <summary type =" html" >< pre>< code> diff --git a/reference/algorithm/ranges_replace_copy.md b/reference/algorithm/ranges_replace_copy.md
1169- index fc6c6e3f6..9630d53bd 100644
1170- --- a/reference/algorithm/ranges_replace_copy.md
1171- +++ b/reference/algorithm/ranges_replace_copy.md
1172- @@ -123,7 +123,7 @@ namespace std::ranges {
1173- - C++26 : 引数として波カッコ初期化`{}`を受け付ける
1174- ```cpp
1175- std::vector& lt;T& gt; v;
1176- - std::ranges::replace_copy_if(v, result, {a, b}, {c, d});
1177- + std::ranges::replace_copy(v, result, {a, b}, {c, d});
1178- ```
1179-
1180-
1181- @@ -176,9 +176,8 @@ int main() {
1182- };
1183-
1184- // 値が{1, 2}の要素をすべて{9, 9}に置き換えたものを出力する
1185- - std::replace_copy(
1186- - v.begin(),
1187- - v.end(),
1188- + std::ranges::replace_copy(
1189- + v,
1190- std::ostream_iterator& lt;int& gt;(std::cout, & #34;\n& #34;),
1191- {1, 2},
1192- {9, 9}
1193- < /code>< /pre> </summary >
1194-
1195- <author >
1196- <name >Akira Takahashi</name >
1197- 1198- </author >
1199- </entry >
1200-
12011216</feed >
0 commit comments