Namespaces
Variants

deduction guides for std::experimental::scope_exit

From cppreference.net

ヘッダーで定義 <experimental/scope>
template < class EF >
scope_exit ( EF ) - > scope_exit < EF > ;
(ライブラリ基盤仕様 TS v3)

1つの デダクションガイド std::experimental::scope_exit に対して提供されており、関数または関数オブジェクト型の引数からの推論を可能にします。

引数( function-to-pointer decay が発生する場合はその後の引数)は、構築された scope_exit 内にコピーまたはムーブされます。