22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2025-04-19T14:41:36.515724 </updated >
6- <id >956f7d72-f99b-42a9-b665-a3a1061f047a </id >
5+ <updated >2025-04-20T05:53:54.449233 </updated >
6+ <id >972e2dee-741d-4631-aa5e-10f3aefb81e9 </id >
77
88
9+ <entry >
10+ <title >constexpr ラムダ [P0170R1] -- 「定数とき」→「定数のとき」</title >
11+ <link href =" https://cpprefjp.github.io/lang/cpp17/constexpr_lambda.html" />
12+ <id >9bd96532716d3a0abf4b3f8793229ac61a4c082e:lang/cpp17/constexpr_lambda.md</id >
13+ <updated >2025-04-20T14:50:30+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/lang/cpp17/constexpr_lambda.md b/lang/cpp17/constexpr_lambda.md
16+ index 5a118885d..e4d3a09e3 100644
17+ --- a/lang/cpp17/constexpr_lambda.md
18+ +++ b/lang/cpp17/constexpr_lambda.md
19+ @@ -18,7 +18,7 @@ C++17から、ラムダ式をconstexpr関数として使えるようになった
20+
21+ ## 仕様
22+
23+ -ラムダ式のキャプチャが全てコンパイル時定数とき、そのラムダ式をconstexprの文脈で使うことができる。
24+ +ラムダ式のキャプチャが全てコンパイル時定数のとき、そのラムダ式をconstexprの文脈で使うことができる。
25+
26+ ```cpp example
27+ constexpr int add_one(int n){
28+ @@ -68,7 +68,7 @@ int main(){
29+
30+ constexpr修飾されていないラムダ式のoperator()はラムダ式がconstexpr関数としての条件を満たす場合
31+
32+ -(つまりラムダ式のキャプチャが全てコンパイル時定数とき)
33+ +(つまりラムダ式のキャプチャが全てコンパイル時定数のとき)
34+
35+ 自動的にconstexpr指定される。
36+
37+ @@ -201,4 +201,4 @@ C++14まではラムダ式がコンパイル時に呼び出せないため、
38+ ## 参照
39+
40+ (執筆中)
41+ -- [P0170R1 Wording for Constexpr Lambda](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0170r1.pdf)
42+ \ No newline at end of file
43+ +- [P0170R1 Wording for Constexpr Lambda](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0170r1.pdf)
44+ < /code>< /pre> </summary >
45+
46+ <author >
47+ <name >tshino</name >
48+ <email >tshino@users.noreply.github.com</email >
49+ </author >
50+ </entry >
51+
952 <entry >
1053 <title >execution -- execution: schedule_result_t (#1384)</title >
1154 <link href =" https://cpprefjp.github.io/reference/execution/execution.html" />
@@ -543,65 +586,4 @@ index 9c6e4c668..90fc7ed10 100644
543586 </author >
544587 </entry >
545588
546- <entry >
547- <title >splice_after -- Merge pull request #1439 from Gumichocopengin8/fix/unnecessary-move-in-forwared_list-splice</title >
548- <link href =" https://cpprefjp.github.io/reference/forward_list/forward_list/splice_after.html" />
549- <id >cf9270b138e48e98ba492cd99978e911d6d096be:reference/forward_list/forward_list/splice_after.md</id >
550- <updated >2025-04-19T10:57:28+09:00</updated >
551-
552- <summary type =" html" >< pre>< code> diff --git a/reference/forward_list/forward_list/splice_after.md b/reference/forward_list/forward_list/splice_after.md
553- index d5404cf6e..ecb33dfab 100644
554- --- a/reference/forward_list/forward_list/splice_after.md
555- +++ b/reference/forward_list/forward_list/splice_after.md
556- @@ -67,7 +67,6 @@ void splice_after(const_iterator position, forward_list& amp;& amp; x,
557- ```cpp example
558- #include & lt;iostream& gt;
559- #include & lt;forward_list& gt;
560- -#include & lt;utility& gt;
561- #include & lt;iterator& gt;
562-
563- template & lt;class T& gt;
564- @@ -84,7 +83,7 @@ int main()
565- std::forward_list& lt;int& gt; xs = {1, 5, 6};
566- std::forward_list& lt;int& gt; ys = {2, 3, 4};
567-
568- - xs.splice_after(xs.begin(), std::move(ys));
569- + xs.splice_after(xs.begin(), ys);
570-
571- print(xs);
572- }
573- @@ -93,7 +92,7 @@ int main()
574- std::forward_list& lt;int& gt; xs = {1, 5, 6};
575- std::forward_list& lt;int& gt; ys = {2, 3, 4};
576-
577- - xs.splice_after(xs.begin(), std::move(ys), ys.begin());
578- + xs.splice_after(xs.begin(), ys, ys.begin());
579-
580- print(xs);
581- }
582- @@ -102,7 +101,7 @@ int main()
583- std::forward_list& lt;int& gt; xs = {1, 5, 6};
584- std::forward_list& lt;int& gt; ys = {2, 3, 4};
585-
586- - xs.splice_after(xs.begin(), std::move(ys), ys.before_begin(), std::next(ys.begin(), 2));
587- + xs.splice_after(xs.begin(), ys, ys.before_begin(), std::next(ys.begin(), 2));
588-
589- print(xs);
590- }
591- @@ -110,7 +109,6 @@ int main()
592- ```
593- * splice_after[color ff0000]
594- * begin()[link begin.md]
595- -* std::move[link /reference/utility/move.md]
596- * std::next[link /reference/iterator/next.md]
597-
598- ### 出力
599- < /code>< /pre> </summary >
600-
601- <author >
602- <name >Akira Takahashi</name >
603- <email >faithandbrave@gmail.com</email >
604- </author >
605- </entry >
606-
607589</feed >
0 commit comments