命名空间
变体
操作

std::experimental::scope_exit<EF>::~scope_exit

来自 cppreference.cn
~scope_exit() noexcept;
(library fundamentals TS v3)

如果 scope_exit 处于活动状态,则调用退出函数,然后销毁存储的 EF(如果它是函数对象)以及任何其他非静态数据成员。

[编辑] 参见

使 scope_exit 失效
(public member function) [编辑]