22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2025-11-20T14:45:09.702374 </updated >
6- <id >25e8f510-4f4b-4fa8-9789-ee00d70b6fb4 </id >
5+ <updated >2025-11-21T07:56:07.910547 </updated >
6+ <id >8b3d3fc9-6ce9-46b7-8d73-eb3154c690f1 </id >
77
88
9+ <entry >
10+ <title >partition_copy -- partition_copy: リンクミスを修正</title >
11+ <link href =" https://cpprefjp.github.io/reference/algorithm/partition_copy.html" />
12+ <id >7f588717e737c2fb13ddfe184fe7e65ffc0bf6d6:reference/algorithm/partition_copy.md</id >
13+ <updated >2025-11-21T16:52:00+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/reference/algorithm/partition_copy.md b/reference/algorithm/partition_copy.md
16+ index 399627dcd..cdcac7400 100644
17+ --- a/reference/algorithm/partition_copy.md
18+ +++ b/reference/algorithm/partition_copy.md
19+ @@ -106,7 +106,6 @@ int main()
20+ }
21+ ```
22+ * std::partition_copy[color ff0000]
23+ -* is_even[link /reference/algorithm/is_partitioned.md]
24+
25+ ### 出力
26+ ```
27+ < /code>< /pre> </summary >
28+
29+ <author >
30+ <name >Akira Takahashi</name >
31+ 32+ </author >
33+ </entry >
34+
935 <entry >
1036 <title >コンストラクタ -- stop_sourceのコンストラクタ : さらにコード修飾を追加</title >
1137 <link href =" https://cpprefjp.github.io/reference/stop_token/stop_source/op_constructor.html" />
@@ -922,223 +948,4 @@ index 0cd38a58e..7dca3129c 100644
922948 </author >
923949 </entry >
924950
925- <entry >
926- <title >optional -- Add std::optional Range Support (#1431)</title >
927- <link href =" https://cpprefjp.github.io/reference/optional/optional.html" />
928- <id >ba21342e425dee870e198965930de266b607c7e1:reference/optional/optional.md</id >
929- <updated >2025-11-12T20:34:03+09:00</updated >
930-
931- <summary type =" html" >< pre>< code> diff --git a/reference/optional/optional.md b/reference/optional/optional.md
932- index 868f5cb86..08edd48c2 100644
933- --- a/reference/optional/optional.md
934- +++ b/reference/optional/optional.md
935- @@ -8,6 +8,15 @@
936- namespace std {
937- template & lt;class T& gt;
938- class optional;
939- +
940- +
941- + // viewコンセプトを有効化する (C++26)
942- + template& lt;class T& gt;
943- + constexpr bool ranges::enable_view& lt;optional& lt;T& gt;& gt; = true;
944- +
945- + // std::formatによるフォーマットを無効化する (C++26)
946- + template& lt;class T& gt;
947- + constexpr auto format_kind& lt;optional& lt;T& gt;& gt; = range_format::disabled;
948- }
949- ```
950-
951- @@ -66,6 +75,14 @@ namespace std {
952- | [`reset`](optional/reset.md) | 有効値を保持していない状態にする | C++17 |
953-
954-
955- +### イテレータ
956- +
957- +| 名前 | 説明 | 対応バージョン |
958- +|------|------|----------------|
959- +| [`begin`](optional/begin.md) | `optional`をrangeとした時の先頭要素を指すイテレータを取得する | C++26 |
960- +| [`end`](optional/end.md) | `optional`をrangeとした時の末尾要素の次を指すイテレータを取得する | C++26 |
961- +
962- +
963- ### 値の観測
964-
965- | 名前 | 説明 | 対応バージョン |
966- @@ -92,6 +109,8 @@ namespace std {
967- | 名前 | 説明 | 対応バージョン |
968- |------|------|----------------|
969- | `value_type` | 要素型`T` | C++17 |
970- +| `iterator` | 実装定義のイテレータ型。[`contiguous_iterator`](/reference/iterator/contiguous_iterator.md)、[`random_access_iterator`](/reference/iterator/random_access_iterator.md)、constexprイテレータのモデルであり、コンテナのイテレータに対するすべての要件を満たす | C++26 |
971- +| `const_iterator` | 実装定義の読み取り専用イテレータ型。[`contiguous_iterator`](/reference/iterator/contiguous_iterator.md)、[`random_access_iterator`](/reference/iterator/random_access_iterator.md)、constexprイテレータのモデルであり、コンテナのイテレータに対するすべての要件を満たす | C++26 |
972-
973-
974- ## 非メンバ関数
975- < /code>< /pre> </summary >
976-
977- <author >
978- <name >suomesta</name >
979- 980- </author >
981- </entry >
982-
983- <entry >
984- <title >begin -- Add std::optional Range Support (#1431)</title >
985- <link href =" https://cpprefjp.github.io/reference/optional/optional/begin.html" />
986- <id >ba21342e425dee870e198965930de266b607c7e1:reference/optional/optional/begin.md</id >
987- <updated >2025-11-12T20:34:03+09:00</updated >
988-
989- <summary type =" html" >< pre>< code> diff --git a/reference/optional/optional/begin.md b/reference/optional/optional/begin.md
990- new file mode 100644
991- index 000000000..b2d0d3a7d
992- --- /dev/null
993- +++ b/reference/optional/optional/begin.md
994- @@ -0,0 +1,62 @@
995- +# begin
996- +* optional[meta header]
997- +* std[meta namespace]
998- +* optional[meta class]
999- +* function[meta id-type]
1000- +* cpp26[meta cpp]
1001- +
1002- +```cpp
1003- +constexpr iterator begin() noexcept; // (1)
1004- +constexpr const_iterator begin() const noexcept; // (2)
1005- +```
1006- +
1007- +## 概要
1008- +`optional`をrangeとした時の先頭要素を指すイテレータを取得する。
1009- +
1010- +
1011- +## 効果
1012- +[`has_value()`](has_value.md) `== true`なら、保持している有効値を指すイテレータを返す。またこの時、[`distance`](/reference/iterator/distance.md)`(begin(),` [`end()`](end.md)`)` `== 1` となる。
1013- +
1014- +[`has_value()`](has_value.md) `!= true`なら、末尾要素の次を指すイテレータを返す。この時、`begin() ==` [`end()`](end.md) である。
1015- +
1016- +
1017- +## 例
1018- +```cpp example
1019- +#include & lt;iostream& gt;
1020- +#include & lt;optional& gt;
1021- +
1022- +int main()
1023- +{
1024- + std::optional& lt;int& gt; p1 = 1;
1025- + for (auto i = p1.begin(); i != p1.end(); ++i) {
1026- + std::cout & lt;& lt; *i; // 1度通る
1027- + }
1028- +
1029- + std::optional& lt;int& gt; p2 = std::null_opt;
1030- + for (auto i = p2.begin(); i != p2.end(); ++i) {
1031- + std::cout & lt;& lt; *i; // 1度も通らない
1032- + }
1033- +}
1034- +```
1035- +* begin()[color ff0000]
1036- +* end()[link end.md]
1037- +
1038- +### 出力
1039- +```
1040- +1
1041- +```
1042- +
1043- +
1044- +## バージョン
1045- +### 言語
1046- +- C++26
1047- +
1048- +### 処理系
1049- +- [Clang](/implementation.md#clang): ??
1050- +- [GCC](/implementation.md#gcc): ??
1051- +- [ICC](/implementation.md#icc): ??
1052- +- [Visual C++](/implementation.md#visual_cpp): ??
1053- +
1054- +
1055- +## 参照
1056- +- [P3168R2 Give std::optional Range Support](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3168r2.html)
1057- < /code>< /pre> </summary >
1058-
1059- <author >
1060- <name >suomesta</name >
1061- 1062- </author >
1063- </entry >
1064-
1065- <entry >
1066- <title >end -- Add std::optional Range Support (#1431)</title >
1067- <link href =" https://cpprefjp.github.io/reference/optional/optional/end.html" />
1068- <id >ba21342e425dee870e198965930de266b607c7e1:reference/optional/optional/end.md</id >
1069- <updated >2025-11-12T20:34:03+09:00</updated >
1070-
1071- <summary type =" html" >< pre>< code> diff --git a/reference/optional/optional/end.md b/reference/optional/optional/end.md
1072- new file mode 100644
1073- index 000000000..3476e9e9a
1074- --- /dev/null
1075- +++ b/reference/optional/optional/end.md
1076- @@ -0,0 +1,59 @@
1077- +# end
1078- +* optional[meta header]
1079- +* std[meta namespace]
1080- +* optional[meta class]
1081- +* function[meta id-type]
1082- +* cpp26[meta cpp]
1083- +
1084- +```cpp
1085- +constexpr iterator end() noexcept; // (1)
1086- +constexpr const_iterator end() const noexcept; // (2)
1087- +```
1088- +
1089- +## 概要
1090- +`optional`をrangeとした時の末尾要素の次を指すイテレータを取得する。
1091- +
1092- +
1093- +## 効果
1094- +[`begin()`](begin.md) `+` [`has_value()`](has_value.md) を返す。
1095- +
1096- +
1097- +## 例
1098- +```cpp example
1099- +#include & lt;iostream& gt;
1100- +#include & lt;iterator& gt;
1101- +#include & lt;optional& gt;
1102- +
1103- +int main()
1104- +{
1105- + std::optional& lt;int& gt; p = 1;
1106- + std::cout & lt;& lt; std::distance(p.begin(), p.end()) & lt;& lt; std::endl;
1107- +
1108- + p = std::null_opt;
1109- + std::cout & lt;& lt; std::distance(p.begin(), p.end()) & lt;& lt; std::endl;
1110- +}
1111- +```
1112- +* end()[color ff0000]
1113- +* begin()[link begin.md]
1114- +* std::distance[link /reference/iterator/distance.md]
1115- +
1116- +### 出力
1117- +```
1118- +1
1119- +0
1120- +```
1121- +
1122- +
1123- +## バージョン
1124- +### 言語
1125- +- C++26
1126- +
1127- +### 処理系
1128- +- [Clang](/implementation.md#clang): ??
1129- +- [GCC](/implementation.md#gcc): ??
1130- +- [ICC](/implementation.md#icc): ??
1131- +- [Visual C++](/implementation.md#visual_cpp): ??
1132- +
1133- +
1134- +## 参照
1135- +- [P3168R2 Give std::optional Range Support](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3168r2.html)
1136- < /code>< /pre> </summary >
1137-
1138- <author >
1139- <name >suomesta</name >
1140- 1141- </author >
1142- </entry >
1143-
1144951</feed >
0 commit comments