Skip to content

Commit 73fee60

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent a1b87ca commit 73fee60

File tree

3 files changed

+47
-96
lines changed

3 files changed

+47
-96
lines changed

lang/cpp20/likely_and_unlikely_attributes.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-11-17T14:59:26">
192-
2024年11月17日 14時59分26秒
191+
<span itemprop="datePublished" content="2025-12-01T07:52:33">
192+
2025年12月01日 07時52分33秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Akira Takahashi</span>
196+
<span itemprop="name">Keita Nonaka</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -269,6 +269,7 @@ <h2>この機能が必要になった背景・経緯</h2>
269269
<p>GCCやClangなど一部C++コンパイラでは独自拡張として同等機能を提供しており、Linuxカーネルや大規模OSSによる広い利用実績があったため、C++標準の属性として採用された。</p>
270270
<h2><a href="#relative-page" id="relative-page">関連項目</a></h2>
271271
<ul>
272+
<li><a href="../cpp11/attributes.html">C++11 属性構文</a></li>
272273
<li><a href="../cpp23/portable_assumptions.html">C++23 <code>[[assume]]</code>属性</a></li>
273274
</ul>
274275
<h2>参照</h2>

rss.xml

Lines changed: 28 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,36 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-12-03T22:08:18.002863</updated>
6-
<id>2727672d-5962-49f0-bcdb-d18b8107f85f</id>
5+
<updated>2025-12-04T01:51:07.802335</updated>
6+
<id>23675fac-da8e-48b0-99f0-eac304f042d1</id>
77

88

9+
<entry>
10+
<title>確率が高い分岐と低い分岐を伝える属性 [[likely]], [[unlikely]] [P0479R5] -- Merge pull request #1539 from Gumichocopengin8/fix/add-relative-page</title>
11+
<link href="https://cpprefjp.github.io/lang/cpp20/likely_and_unlikely_attributes.html"/>
12+
<id>7945899c6d50b342bff90c7b32bde8be4d9a0eb2:lang/cpp20/likely_and_unlikely_attributes.md</id>
13+
<updated>2025-12-04T10:47:09+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp20/likely_and_unlikely_attributes.md b/lang/cpp20/likely_and_unlikely_attributes.md
16+
index 9a818d36e..85a5f8300 100644
17+
--- a/lang/cpp20/likely_and_unlikely_attributes.md
18+
+++ b/lang/cpp20/likely_and_unlikely_attributes.md
19+
@@ -72,6 +72,7 @@ GCCやClangなど一部C++コンパイラでは独自拡張として同等機能
20+
21+
22+
## &amp;lt;a id=&amp;#34;relative-page&amp;#34; href=&amp;#34;#relative-page&amp;#34;&amp;gt;関連項目&amp;lt;/a&amp;gt;
23+
+- [C++11 属性構文](/lang/cpp11/attributes.md)
24+
- [C++23 `[[assume]]`属性](/lang/cpp23/portable_assumptions.md)
25+
26+
27+
&lt;/code&gt;&lt;/pre&gt;</summary>
28+
29+
<author>
30+
<name>Akira Takahashi</name>
31+
<email>faithandbrave@gmail.com</email>
32+
</author>
33+
</entry>
34+
935
<entry>
1036
<title>リファレンス -- Merge pull request #1542 from cpprefjp/clocale</title>
1137
<link href="https://cpprefjp.github.io/reference.html"/>
@@ -1763,82 +1789,6 @@ index 439623166..b41860e0d 100644
17631789

17641790
`strtoull()`関数での文字列先頭の空白を読み飛ばす処理に、`&amp;lt;cctype&amp;gt;`の`isspace()`関数が使用されるためである。
17651791

1766-
&lt;/code&gt;&lt;/pre&gt;</summary>
1767-
1768-
<author>
1769-
<name>K10-K10</name>
1770-
<email>keito.tottori@gmail.com</email>
1771-
</author>
1772-
</entry>
1773-
1774-
<entry>
1775-
<title>setlocale -- setlocale: 関数ページを追加</title>
1776-
<link href="https://cpprefjp.github.io/reference/clocale/setlocale.html"/>
1777-
<id>4329bd56e985b0e9558c42622956319a3b788a78:reference/clocale/setlocale.md</id>
1778-
<updated>2025-12-03T22:38:50+09:00</updated>
1779-
1780-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/clocale/setlocale.md b/reference/clocale/setlocale.md
1781-
new file mode 100644
1782-
index 000000000..e2934913f
1783-
--- /dev/null
1784-
+++ b/reference/clocale/setlocale.md
1785-
@@ -0,0 +1,56 @@
1786-
+# setlocale
1787-
+* clocale[meta header]
1788-
+* std[meta namespace]
1789-
+* function[meta id-type]
1790-
+
1791-
+```cpp
1792-
+namespace std {
1793-
+ char* setlocale(int category, const char* locale);
1794-
+}
1795-
+```
1796-
+
1797-
+## 概要
1798-
+指定したカテゴリのロケールを設定、または現在のロケールを取得する。
1799-
+
1800-
+指定できるロケール文字列は[以下のページ](/article/platform/locales.md)である。
1801-
+
1802-
+## 引数
1803-
+- `category`:設定対象のカテゴリ。`LC_ALL`,`LC_CTYPE`などのマクロを使用。
1804-
+- `locale`:
1805-
+ * &amp;#34;C&amp;#34;:標準のCロケール
1806-
+ * &amp;#34;&amp;#34;:環境依存のデフォルトロケール
1807-
+ * `NULL`:現在のロケールを取得するだけ
1808-
+
1809-
+## 戻り値
1810-
+成功時は設定されたロケール名(文字列)、失敗時は`NULL`。
1811-
+
1812-
+## 例
1813-
+```cpp example
1814-
+#include &amp;lt;iostream&amp;gt;
1815-
+#include &amp;lt;clocale&amp;gt;
1816-
+
1817-
+int main(){
1818-
+ // 日本語ロケールに設定
1819-
+ if (!std::setlocale(LC_ALL, &amp;#34;ja_JP.UTF-8&amp;#34;)) {
1820-
+ std::cerr &amp;lt;&amp;lt; &amp;#34;Failed to set locale\n&amp;#34;;
1821-
+ return 1;
1822-
+ }
1823-
+
1824-
+ // 現在の全カテゴリのロケールを取得
1825-
+ std::cout &amp;lt;&amp;lt; &amp;#34;Current locale: &amp;#34; &amp;lt;&amp;lt; std::setlocale(LC_ALL, NULL) &amp;lt;&amp;lt; &amp;#34;\n&amp;#34;;
1826-
+
1827-
+ // 数値カテゴリだけ確認
1828-
+ std::cout &amp;lt;&amp;lt; &amp;#34;Numeric locale: &amp;#34; &amp;lt;&amp;lt; std::setlocale(LC_NUMERIC, NULL) &amp;lt;&amp;lt; &amp;#34;\n&amp;#34;;
1829-
+}
1830-
+
1831-
+```
1832-
+
1833-
+### 出力
1834-
+```
1835-
+Current locale: ja_JP.UTF-8
1836-
+Numeric locale: ja_JP.UTF-8
1837-
+```
1838-
+
1839-
+## 関連項目
1840-
+- [ ロケール文字一覧 ](/article/platform/locales.md)
1841-
+- [ `std::locale` ](/reference/locale/locale.md)
18421792
&lt;/code&gt;&lt;/pre&gt;</summary>
18431793

18441794
<author>

sitemap.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<url>
55
<loc>https://cpprefjp.github.io/reference.html</loc>
6-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
6+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
77
<changefreq>daily</changefreq>
88
<priority>0.9</priority>
99
</url>
@@ -486,7 +486,7 @@
486486

487487
<url>
488488
<loc>https://cpprefjp.github.io/reference/clocale.html</loc>
489-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
489+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
490490
<changefreq>daily</changefreq>
491491
<priority>0.8</priority>
492492
</url>
@@ -843,35 +843,35 @@
843843

844844
<url>
845845
<loc>https://cpprefjp.github.io/reference/cstdlib.html</loc>
846-
<lastmod>2025-12-03T10:03:48+09:00</lastmod>
846+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
847847
<changefreq>daily</changefreq>
848848
<priority>0.8</priority>
849849
</url>
850850

851851
<url>
852852
<loc>https://cpprefjp.github.io/reference/string/stof.html</loc>
853-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
853+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
854854
<changefreq>daily</changefreq>
855855
<priority>0.7</priority>
856856
</url>
857857

858858
<url>
859859
<loc>https://cpprefjp.github.io/reference/string/stoll.html</loc>
860-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
860+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
861861
<changefreq>daily</changefreq>
862862
<priority>0.7</priority>
863863
</url>
864864

865865
<url>
866866
<loc>https://cpprefjp.github.io/reference/string/stoul.html</loc>
867-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
867+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
868868
<changefreq>daily</changefreq>
869869
<priority>0.7</priority>
870870
</url>
871871

872872
<url>
873873
<loc>https://cpprefjp.github.io/reference/string/stoull.html</loc>
874-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
874+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
875875
<changefreq>daily</changefreq>
876876
<priority>0.7</priority>
877877
</url>
@@ -892,14 +892,14 @@
892892

893893
<url>
894894
<loc>https://cpprefjp.github.io/reference/string/stoi.html</loc>
895-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
895+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
896896
<changefreq>daily</changefreq>
897897
<priority>0.7</priority>
898898
</url>
899899

900900
<url>
901901
<loc>https://cpprefjp.github.io/reference/string/stod.html</loc>
902-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
902+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
903903
<changefreq>daily</changefreq>
904904
<priority>0.7</priority>
905905
</url>
@@ -913,14 +913,14 @@
913913

914914
<url>
915915
<loc>https://cpprefjp.github.io/reference/string/stol.html</loc>
916-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
916+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
917917
<changefreq>daily</changefreq>
918918
<priority>0.7</priority>
919919
</url>
920920

921921
<url>
922922
<loc>https://cpprefjp.github.io/reference/string/stold.html</loc>
923-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
923+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
924924
<changefreq>daily</changefreq>
925925
<priority>0.7</priority>
926926
</url>
@@ -5099,7 +5099,7 @@
50995099

51005100
<url>
51015101
<loc>https://cpprefjp.github.io/reference/cstdlib/mb_cur_max.html</loc>
5102-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
5102+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
51035103
<changefreq>daily</changefreq>
51045104
<priority>0.7</priority>
51055105
</url>
@@ -5225,7 +5225,7 @@
52255225

52265226
<url>
52275227
<loc>https://cpprefjp.github.io/reference/cstdlib/mblen.html</loc>
5228-
<lastmod>2025-12-03T10:11:53+09:00</lastmod>
5228+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
52295229
<changefreq>daily</changefreq>
52305230
<priority>0.7</priority>
52315231
</url>
@@ -20226,7 +20226,7 @@
2022620226

2022720227
<url>
2022820228
<loc>https://cpprefjp.github.io/reference/clocale/setlocale.html</loc>
20229-
<lastmod>2025-12-03T22:04:14+00:00</lastmod>
20229+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
2023020230
<changefreq>daily</changefreq>
2023120231
<priority>0.7</priority>
2023220232
</url>
@@ -41023,7 +41023,7 @@
4102341023

4102441024
<url>
4102541025
<loc>https://cpprefjp.github.io/lang/cpp20/likely_and_unlikely_attributes.html</loc>
41026-
<lastmod>2025-10-04T19:13:40+09:00</lastmod>
41026+
<lastmod>2025-12-04T10:47:09+09:00</lastmod>
4102741027
<changefreq>daily</changefreq>
4102841028
<priority>0.7</priority>
4102941029
</url>

0 commit comments

Comments
 (0)