名前空間
変種
操作

「cpp/utility/functional/function/operator()」の版間の差分

提供: cppreference.com
< cpp‎ | utility‎ | functional‎ | function
(Fix some translations)
1行: 1行:
{{tr_note}}
 
 
{{cpp/utility/functional/function/title | operator()}}
 
{{cpp/utility/functional/function/title | operator()}}
 
{{cpp/utility/functional/function/navbar}}
 
{{cpp/utility/functional/function/navbar}}
{{ddcl | notes={{mark since c++11}} |
+
{{ddcl | sincec++11 |
R operator()( ArgTypes... args ) const;
+
R operator()( ... args ) const;
 
}}
 
}}
  
Calls the stored callable function target with the parameters {{tt|args}}.
+
callable {{tt|args}}
  
===パラメータ===
+
 +
 
 +
======
 
{{par begin}}
 
{{par begin}}
{{par | args | parameters to pass to the stored callable function target}}
+
{{par | args | callable }}
 
{{par end}}
 
{{par end}}
  
===値を返します===
+
======
None if {{tt|R}} is {{c|void}}. Otherwise the return value of the invocation of the stored callable object.
+
{{tt|R}} {{c|void}} callable
  
 
===例外===
 
===例外===
* {{lc|std::bad_function_call}} if {{c|*this}} does not store a callable function target,  {{c|!*this {{==}} true}}.
+
* {{c|*this}} callable {{c|!*this {{==}} true}}
  
 
===例===
 
===例===
 
{{example
 
{{example
  | The following example shows how {{lc|std::function}} can passed to other functions by value. Also, it shown how {{lc|std::function}} can store lambdas.
+
  | {{lc|std::function}} {{lc|std::function}}
 
  | code=
 
  | code=
 
#include <iostream>
 
#include <iostream>
54行: 55行:
 
}}
 
}}
  
===参照===
+
======
{{todo}}
+
{{
 +
 +
 +
 +
}}
  
 
[[de:cpp/utility/functional/function/operator()]]
 
[[de:cpp/utility/functional/function/operator()]]

2018年3月21日 (水) 06:25時点における版

 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
関数オブジェクト
関数ラッパー
(C++11)
(C++11)
関数の部分適用
(C++20)
(C++11)
関数呼び出し
(C++17)
恒等関数オブジェクト
(C++20)
参照ラッパー
(C++11)(C++11)
演算子ラッパー