|
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-09-29T01:49:39.998569</updated> |
6 | | - <id>834992ef-30fd-4f20-969a-d85ba5d0d529</id> |
| 5 | + <updated>2025-09-29T09:21:45.511582</updated> |
| 6 | + <id>1e8efe25-be61-4828-b00b-ac6fd7a228dd</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>spawn -- Typo修正</title> |
| 11 | + <link href="https://cpprefjp.github.io/reference/execution/execution/spawn.html"/> |
| 12 | + <id>9e1ab85cca54ead1770ff96999a7c3228d0fb273:reference/execution/execution/spawn.md</id> |
| 13 | + <updated>2025-09-29T18:17:29+09:00</updated> |
| 14 | + |
| 15 | + <summary type="html"><pre><code>diff --git a/reference/execution/execution/spawn.md b/reference/execution/execution/spawn.md |
| 16 | +index 60caee00a..4cba44ec7 100644 |
| 17 | +--- a/reference/execution/execution/spawn.md |
| 18 | ++++ b/reference/execution/execution/spawn.md |
| 19 | +@@ -13,7 +13,7 @@ namespace std::execution { |
| 20 | + * unspecified[italic] |
| 21 | + |
| 22 | + ## 概要 |
| 23 | +-`spawn`は、入力[Sender](sender.md)に対して[非同期トークンスコープ](scope_token.md))への関連付けを試み、成功時に入力Senderを早期開始(eagerly start)させるSenderコンシューマである。 |
| 24 | ++`spawn`は、入力[Sender](sender.md)に対して[非同期トークンスコープ](scope_token.md)への関連付けを試み、成功時に入力Senderを早期開始(eagerly start)させるSenderコンシューマである。 |
| 25 | + |
| 26 | + |
| 27 | + ## 効果 |
| 28 | +@@ -68,7 +68,6 @@ namespace std::execution { |
| 29 | + 説明専用のクラステンプレート`spawn-state`を下記の通り定義する。 |
| 30 | + |
| 31 | + ```cpp |
| 32 | +-🔗 |
| 33 | + namespace std::execution { |
| 34 | + template&lt;class Alloc, scope_token Token, sender Sender&gt; |
| 35 | + struct spawn-state : spawn-state-base { // exposition only |
| 36 | +</code></pre></summary> |
| 37 | + |
| 38 | + <author> |
| 39 | + <name>Raclamusi</name> |
| 40 | + |
| 41 | + </author> |
| 42 | + </entry> |
| 43 | + |
9 | 44 | <entry> |
10 | 45 | <title>execution -- execution: P3149R11 spawn(#1510)</title> |
11 | 46 | <link href="https://cpprefjp.github.io/reference/execution/execution.html"/> |
@@ -979,102 +1014,6 @@ index 44b66d3d0..4c524edc8 100644 |
979 | 1014 | ## バージョン |
980 | 1015 | ### 言語 |
981 | 1016 | - C++23 |
982 | | -</code></pre></summary> |
983 | | - |
984 | | - <author> |
985 | | - <name>Raclamusi</name> |
986 | | - |
987 | | - </author> |
988 | | - </entry> |
989 | | - |
990 | | - <entry> |
991 | | - <title>range_formatter -- range_formatter のコード例の修正と動作確認</title> |
992 | | - <link href="https://cpprefjp.github.io/reference/format/range_formatter.html"/> |
993 | | - <id>5c792ff69e2d818f159ee83de3c41e6c87f16eea:reference/format/range_formatter.md</id> |
994 | | - <updated>2025-09-28T20:38:10+09:00</updated> |
995 | | - |
996 | | - <summary type="html"><pre><code>diff --git a/reference/format/range_formatter.md b/reference/format/range_formatter.md |
997 | | -index f093eca86..44b66d3d0 100644 |
998 | | ---- a/reference/format/range_formatter.md |
999 | | -+++ b/reference/format/range_formatter.md |
1000 | | -@@ -48,7 +48,7 @@ class MyVector { |
1001 | | - public: |
1002 | | - using base_type = std::vector&lt;T&gt;; |
1003 | | - using iterator = typename base_type::iterator; |
1004 | | -- using const_iterator = typename base_type::iterator; |
1005 | | -+ using const_iterator = typename base_type::const_iterator; |
1006 | | - using value_type = typename base_type::value_type; |
1007 | | - using reference = typename base_type::reference; |
1008 | | - using const_reference = typename base_type::const_reference; |
1009 | | -@@ -57,11 +57,11 @@ public: |
1010 | | - MyVector(std::initializer_list&lt;T&gt; init) |
1011 | | - : v_(init.begin(), init.end()) {} |
1012 | | - |
1013 | | -- iterator begin() { v_.begin(); } |
1014 | | -- const_iterator begin() const { v_.begin(); } |
1015 | | -+ iterator begin() { return v_.begin(); } |
1016 | | -+ const_iterator begin() const { return v_.begin(); } |
1017 | | - |
1018 | | -- iterator end() { v_.end(); } |
1019 | | -- const_iterator end() const { v_.end(); } |
1020 | | -+ iterator end() { return v_.end(); } |
1021 | | -+ const_iterator end() const { return v_.end(); } |
1022 | | - |
1023 | | - const std::vector&lt;T&gt;&amp; base() const { return v_; } |
1024 | | - }; |
1025 | | -@@ -70,14 +70,14 @@ template &lt;class T&gt; |
1026 | | - constexpr std::range_format std::format_kind&lt;MyVector&lt;T&gt;&gt; = std::range_format::sequence; |
1027 | | - |
1028 | | - template &lt;class T&gt; |
1029 | | --class std::range_formatter&lt;MyVector&lt;T&gt;&gt; : public std::range_formatter&lt;std::vector&lt;T&gt;&gt; { |
1030 | | -+class std::formatter&lt;MyVector&lt;T&gt;&gt; : public std::range_formatter&lt;T&gt; { |
1031 | | - bool is_colon = false; |
1032 | | -- using base_type = std::range_formatter&lt;std::vector&lt;T&gt;&gt;; |
1033 | | -+ using base_type = std::range_formatter&lt;T&gt;; |
1034 | | - public: |
1035 | | - |
1036 | | - // コンパイル時の書式文字列の解析があるため、 |
1037 | | - // constexprにする必要がある。 |
1038 | | -- // この関数に渡されるパラメータは、{:%j}の%以降。 |
1039 | | -+ // この関数に渡されるパラメータは、{:c:02x}のc以降。 |
1040 | | - // 解析がおわった場所を指すイテレータを返す。 |
1041 | | - constexpr auto parse(std::format_parse_context&amp; pctx) { |
1042 | | - auto it = pctx.begin(); |
1043 | | -@@ -105,7 +105,7 @@ public: |
1044 | | - ++out; |
1045 | | - } |
1046 | | - fctx.advance_to(out); |
1047 | | -- out = underlying().format(x, fctx); |
1048 | | -+ out = this-&gt;underlying().format(x, fctx); |
1049 | | - } |
1050 | | - return out; |
1051 | | - } |
1052 | | -@@ -117,7 +117,7 @@ public: |
1053 | | - |
1054 | | - int main() |
1055 | | - { |
1056 | | -- std::vector&lt;std::uint8_t&gt; v = {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}; |
1057 | | -+ MyVector&lt;std::uint8_t&gt; v = {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}; |
1058 | | - std::cout &lt;&lt; std::format(&#34;{:c:02x}&#34;, v) &lt;&lt; std::endl; |
1059 | | - } |
1060 | | - ``` |
1061 | | -@@ -136,15 +136,13 @@ int main() |
1062 | | - aa:bb:cc:dd:ee:ff |
1063 | | - ``` |
1064 | | - |
1065 | | --(動作確認はできていない) |
1066 | | -- |
1067 | | - ## バージョン |
1068 | | - ### 言語 |
1069 | | - - C++23 |
1070 | | - |
1071 | | - ### 処理系 |
1072 | | - - [Clang](/implementation.md#clang): ?? |
1073 | | --- [GCC](/implementation.md#gcc): ?? |
1074 | | -+- [GCC](/implementation.md#gcc): 15.1 [mark verified] |
1075 | | - - [ICC](/implementation.md#icc): ?? |
1076 | | - - [Visual C++](/implementation.md#visual_cpp): ?? |
1077 | | - |
1078 | 1017 | </code></pre></summary> |
1079 | 1018 |
|
1080 | 1019 | <author> |
|
0 commit comments