std::pointer_to_binary_function
來自 cppreference.com
template< class Arg1, |
(C++11 中已棄用) (在 C++17 中已移除) |
|
std::pointer_to_binary_function
是一個函式物件,作為二元函式的包裝器。
目錄 |
[編輯] 成員函式
(建構函式) |
使用提供的函式構造一個新的 pointer_to_binary_function 物件(公開成員函式) |
operator() |
呼叫儲存的函式 (公開成員函式) |
std::pointer_to_binary_function::pointer_to_binary_function
explicit pointer_to_binary_function( Result (*f)(Arg1,Arg2) ); |
||
構造一個 pointer_to_binary_function
函式物件,並存儲函式 f。
引數
f | - | 指向要儲存的函式的指標 |
std::pointer_to_binary_function::operator()
Result operator()( Arg1 x1, Arg2 x2 ) const; |
||
呼叫儲存的函式。
引數
x1, x2 | - | 要傳遞給函式的引數 |
返回值
被呼叫函式的返回值。
[編輯] 參閱
(C++11 中已廢棄)(C++17 中已移除) |
指向一元函式的指標的介面卡相容包裝器 (類模板) |
(C++11 中已廢棄)(C++17 中已移除) |
從函式指標建立介面卡相容函式物件包裝器 (函式模板) |