ポイントをセクション5.1.2、パラ6:ラムダ式: ラムダ式:n3290 ISOドラフトからn3290ドラフト
"The closure type for a lambda-expression with no
lambda-capture has a public non-virtual non-explicit const
conversion function to pointer to function having the same
parameter and return types as the closure type’s function
call operator. The value returned by this conversion
function shall be the address of a function that, when
invoked, has the same effect as invoking the closure
type’s function call operator."
いずれかの例でこの点をしてください説明できますか?
これの特定の部分は混乱していますか?あなたが理解していない用語がありますか?あなたは、必要な行動が何であるか理解していませんか? –
@ James:typedef int(* pf)(int); int callback(pf func){returnfunc(3);} pf func = [](int k) - > int {k--;} return k;}; – user751747
@ジェームズ:上記の..exampleは上記のステートメントを表しています...ポイントについてはちょっと混乱しています。 "クロージャタイプの関数呼び出し演算子を呼び出すのと同じ効果" ..しかし、プログラムの観点から証明することはできません。.way – user751747