Skip to content

Commit 7b17393

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent a7ad654 commit 7b17393

File tree

3 files changed

+39
-33
lines changed

3 files changed

+39
-33
lines changed

reference/functional/function.html

Lines changed: 7 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-01-05T09:09:24">
192-
2024年01月05日 09時09分24秒
191+
<span itemprop="datePublished" content="2025-09-10T05:09:23">
192+
2025年09月10日 05時09分23秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">yoh</span>
196+
<span itemprop="name">Akira Takahashi</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -235,6 +235,10 @@ <h2>概要</h2>
235235
</p>
236236
<p><code>function</code>のテンプレート引数には、「<a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価結果となるオブジェクト・値">戻り値</a>の型(引数の型リスト...)」という形式で、型で関数のシグニチャを指定する。</p>
237237
<p><code>function</code>クラスは具体的な関数・関数オブジェクトの型には依存しない。シグニチャが一致していればあらゆる型の関数、関数オブジェクトを代入できる。</p>
238+
<h2>備考</h2>
239+
<ul>
240+
<li><code>function&lt;int(int arg1, double arg2)&gt;</code>のように、パラメータに名前を付けることもできるが、名前は単に無視される</li>
241+
</ul>
238242
<h2>メンバ関数</h2>
239243
<table border="1" bordercolor="#888" style="border-collapse:collapse">
240244
<thead>

rss.xml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,39 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-09-09T14:45:09.450652</updated>
6-
<id>4e847a75-fb0a-4654-b700-706ece3267cf</id>
5+
<updated>2025-09-10T05:13:29.862770</updated>
6+
<id>3c00e14f-da77-47ed-823e-a1ab455ce69c</id>
77

88

9+
<entry>
10+
<title>function -- function : 関数型にパラメータ名を指定することもできることを備考として記載 #1529</title>
11+
<link href="https://cpprefjp.github.io/reference/functional/function.html"/>
12+
<id>0180bdc24e02883adf9e52d6e95b40db566f3fbb:reference/functional/function.md</id>
13+
<updated>2025-09-10T14:09:23+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/functional/function.md b/reference/functional/function.md
16+
index 3ece42c40..d52a16cbd 100644
17+
--- a/reference/functional/function.md
18+
+++ b/reference/functional/function.md
19+
@@ -32,6 +32,10 @@ int result = f(1); // result == 2
20+
21+
`function`クラスは具体的な関数・関数オブジェクトの型には依存しない。シグニチャが一致していればあらゆる型の関数、関数オブジェクトを代入できる。
22+
23+
+## 備考
24+
+- `function&amp;lt;int(int arg1, double arg2)&amp;gt;`のように、パラメータに名前を付けることもできるが、名前は単に無視される
25+
+
26+
+
27+
28+
## メンバ関数
29+
30+
&lt;/code&gt;&lt;/pre&gt;</summary>
31+
32+
<author>
33+
<name>Akira Takahashi</name>
34+
<email>[email protected]</email>
35+
</author>
36+
</entry>
37+
938
<entry>
1039
<title>replace_copy -- 対応しない波カッコを修正</title>
1140
<link href="https://cpprefjp.github.io/reference/algorithm/ranges_replace_copy.html"/>
@@ -2459,31 +2488,4 @@ index 72be0f359..cb0515bc5 100644
24592488
</author>
24602489
</entry>
24612490

2462-
<entry>
2463-
<title>組み込み配列の比較を非推奨化 [P1120R0] -- P1120R0: コメントの解説の誤植を修正</title>
2464-
<link href="https://cpprefjp.github.io/lang/cpp20/deprecate_array_comparisons.html"/>
2465-
<id>1db2ef444f24ef0c04765f530fe956756994a8bb:lang/cpp20/deprecate_array_comparisons.md</id>
2466-
<updated>2025-09-04T00:04:45+09:00</updated>
2467-
2468-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp20/deprecate_array_comparisons.md b/lang/cpp20/deprecate_array_comparisons.md
2469-
index 72be0f359..cb0515bc5 100644
2470-
--- a/lang/cpp20/deprecate_array_comparisons.md
2471-
+++ b/lang/cpp20/deprecate_array_comparisons.md
2472-
@@ -17,7 +17,7 @@
2473-
```cpp
2474-
int arr1[5];
2475-
int arr2[5];
2476-
-bool same = arr1 == arr2; // C++20で非推奨。&amp;amp;arr[0] == &amp;amp;arr[1]と同じ。
2477-
+bool same = arr1 == arr2; // C++20で非推奨。&amp;amp;arr1[0] == &amp;amp;arr2[0]と同じ。
2478-
// 配列の要素は比較されない
2479-
auto cmp = arr1 &amp;lt;=&amp;gt; arr2; // エラー!
2480-
```
2481-
&lt;/code&gt;&lt;/pre&gt;</summary>
2482-
2483-
<author>
2484-
<name>ACUVE</name>
2485-
<email>[email protected]</email>
2486-
</author>
2487-
</entry>
2488-
24892491
</feed>

sitemap.xml

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

2281722817
<url>
2281822818
<loc>https://cpprefjp.github.io/reference/functional/function.html</loc>
22819-
<lastmod>2025-07-22T23:37:52+09:00</lastmod>
22819+
<lastmod>2025-09-10T14:09:23+09:00</lastmod>
2282022820
<changefreq>daily</changefreq>
2282122821
<priority>0.7</priority>
2282222822
</url>

0 commit comments

Comments
 (0)