Skip to content

Commit 76d0fbc

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 6274e58 commit 76d0fbc

3 files changed

Lines changed: 53 additions & 8 deletions

File tree

reference/regex/regex_traits/transform_primary.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@
201201
<p class="text-right"><small>
202202
最終更新日時:
203203
<time itemprop="datePublished" class="js-local-time"
204-
datetime="2026-07-22T16:08:23+09:00">
205-
2026年07月22日 16時08分23秒 (JST)
204+
datetime="2026-08-17T11:01:30+09:00">
205+
2026年08月17日 11時01分30秒 (JST)
206206
</time>
207207
<br/>
208208
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
209-
<span itemprop="name">rotarymars</span>
209+
<span itemprop="name">Akira Takahashi</span>
210210
</span>
211211
が更新
212212
</small></p>
@@ -255,8 +255,8 @@
255255
</p>
256256
<h2>概要</h2>
257257
<p>与えられた文字範囲<code>[first, last)</code>を、並べ替えのキーとして使用する、大文字・小文字を区別しない文字のシーケンスに変換する。結果のシーケンスは、ロケールごとの照合順序となる。</p>
258-
<h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価結果となるオブジェクト・値">戻り値</a></h2>
259-
<p><code>typeid(use_facet&lt;collate&lt;char_type&gt;&gt;) == typeid(collate_byname&lt;char_type&gt;)</code>であり、<code>collate_byname&lt;char_type&gt;::transform(first, last)</code>が優先順位付きキーに変換できる場合はそのキーを返し、そうでない場合は<a class="cpprefjp-defined-word" data-desc="empty string。長さゼロの文字列">空文字列</a>を返す。</p>
258+
<h2>効果</h2>
259+
<p><code><a href="getloc.html">getloc()</a></code>で得られるロケールにおける文字照合ファセット <code><a href="../../locale/collate.html">collate</a>&lt;char_type&gt;</code> の型が <code><a href="../../locale/collate_byname.html">collate_byname</a>&lt;char_type&gt;</code> であり、かつ<code>collate_byname&lt;char_type&gt;::transform(first, last)</code>が返すソートキーの形式が既知であってプライマリソートキーに変換できる場合、そのキーを返す。そうでなければ<a class="cpprefjp-defined-word" data-desc="empty string。長さゼロの文字列">空文字列</a>を返す。</p>
260260
<h2></h2>
261261
<p><div class="yata" id="e0b4f508a911aaed4d3a82d6e9827d82badcc00c"><div class="codehilite"><pre><span></span><code><span class="cp">#include <a href="../../regex.html">&lt;regex&gt;</a></span>
262262
<span class="cp">#include <a href="../../cassert.html">&lt;cassert&gt;</a></span>
@@ -297,6 +297,13 @@ <h3>処理系</h3>
297297
<li><a href="../../../implementation.html#gcc">GCC</a>: 4.9.0 <span aria-label="検証済" role="img" title="検証済"></span>, 4.9.1 <span aria-label="検証済" role="img" title="検証済"></span>, 4.9.2 <span aria-label="検証済" role="img" title="検証済"></span>, 5.0.0 <span aria-label="検証済" role="img" title="検証済"></span></li>
298298
<li><a href="../../../implementation.html#icc">ICC</a>: ??</li>
299299
<li><a href="../../../implementation.html#visual_cpp">Visual C++</a>: ??</li>
300+
</ul>
301+
<h2>参照</h2>
302+
<ul>
303+
<li><a href="https://cplusplus.github.io/LWG/issue4186" target="_blank">LWG Issue 4186. <code>regex_traits::transform_primary</code> mistakenly detects <code>typeid</code> of a function</a><ul>
304+
<li>C++26で、文字照合ファセットの判定が、関数の<code>typeid</code>を誤って検出しないよう、ロケールの<code>collate</code>ファセットの型が<code>collate_byname&lt;char_type&gt;</code>であるかどうかを判定する形に明確化された</li>
305+
</ul>
306+
</li>
300307
</ul></div>
301308

302309
</div>

rss.xml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,48 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2026-08-17T01:58:03.613745</updated>
6-
<id>fde4a46b-3833-4efd-a891-cdee0e569bba</id>
5+
<updated>2026-08-17T02:03:46.145404</updated>
6+
<id>9723dd19-1e56-4f6d-850b-fa1300126de5</id>
77

88

9+
<entry>
10+
<title>transform_primary -- regex_traits::transform_primary : 仕様明確化</title>
11+
<link href="https://cpprefjp.github.io/reference/regex/regex_traits/transform_primary.html"/>
12+
<id>0c9e5080bb361bde6bf0324adf29042dee5ebd0c:reference/regex/regex_traits/transform_primary.md</id>
13+
<updated>2026-08-17T11:01:30+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/regex/regex_traits/transform_primary.md b/reference/regex/regex_traits/transform_primary.md
16+
index c06ce049e..255021376 100644
17+
--- a/reference/regex/regex_traits/transform_primary.md
18+
+++ b/reference/regex/regex_traits/transform_primary.md
19+
@@ -15,8 +15,8 @@ string_type transform_primary(ForwardIterator first, ForwardIterator last) const
20+
与えられた文字範囲`[first, last)`を、並べ替えのキーとして使用する、大文字・小文字を区別しない文字のシーケンスに変換する。結果のシーケンスは、ロケールごとの照合順序となる。
21+
22+
23+
-## 戻り値
24+
-`typeid(use_facet&amp;lt;collate&amp;lt;char_type&amp;gt;&amp;gt;) == typeid(collate_byname&amp;lt;char_type&amp;gt;)`であり、`collate_byname&amp;lt;char_type&amp;gt;::transform(first, last)`が優先順位付きキーに変換できる場合はそのキーを返し、そうでない場合は空文字列を返す。
25+
+## 効果
26+
+[`getloc()`](getloc.md)で得られるロケールにおける文字照合ファセット [`collate`](/reference/locale/collate.md)`&amp;lt;char_type&amp;gt;` の型が [`collate_byname`](/reference/locale/collate_byname.md)`&amp;lt;char_type&amp;gt;` であり、かつ`collate_byname&amp;lt;char_type&amp;gt;::transform(first, last)`が返すソートキーの形式が既知であってプライマリソートキーに変換できる場合、そのキーを返す。そうでなければ空文字列を返す。
27+
28+
29+
## 例
30+
@@ -66,3 +66,8 @@ int main()
31+
- [GCC](/implementation.md#gcc): 4.9.0 [mark verified], 4.9.1 [mark verified], 4.9.2 [mark verified], 5.0.0 [mark verified]
32+
- [ICC](/implementation.md#icc): ??
33+
- [Visual C++](/implementation.md#visual_cpp): ??
34+
+
35+
+
36+
+## 参照
37+
+- [LWG Issue 4186. `regex_traits::transform_primary` mistakenly detects `typeid` of a function](https://cplusplus.github.io/LWG/issue4186)
38+
+ - C++26で、文字照合ファセットの判定が、関数の`typeid`を誤って検出しないよう、ロケールの`collate`ファセットの型が`collate_byname&amp;lt;char_type&amp;gt;`であるかどうかを判定する形に明確化された
39+
&lt;/code&gt;&lt;/pre&gt;</summary>
40+
41+
<author>
42+
<name>Akira Takahashi</name>
43+
<email>faithandbrave@gmail.com</email>
44+
</author>
45+
</entry>
46+
947
<entry>
1048
<title>inplace_merge -- Merge pull request #1729 from cpprefjp/cpp26_lib_issues6</title>
1149
<link href="https://cpprefjp.github.io/reference/algorithm/inplace_merge.html"/>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22648,7 +22648,7 @@
2264822648

2264922649
<url>
2265022650
<loc>https://cpprefjp.github.io/reference/regex/regex_traits/transform_primary.html</loc>
22651-
<lastmod>2026-07-31T10:41:25+09:00</lastmod>
22651+
<lastmod>2026-08-17T11:01:30+09:00</lastmod>
2265222652
<changefreq>daily</changefreq>
2265322653
<priority>0.6</priority>
2265422654
</url>

0 commit comments

Comments
 (0)