Skip to content

Commit 0180bdc

Browse files
committed
function : 関数型にパラメータ名を指定することもできることを備考として記載 #1529
1 parent a9216ac commit 0180bdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/functional/function.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ int result = f(1); // result == 2
3232

3333
`function`クラスは具体的な関数・関数オブジェクトの型には依存しない。シグニチャが一致していればあらゆる型の関数、関数オブジェクトを代入できる。
3434

35+
## 備考
36+
- `function<int(int arg1, double arg2)>`のように、パラメータに名前を付けることもできるが、名前は単に無視される
37+
38+
3539

3640
## メンバ関数
3741

0 commit comments

Comments
 (0)