命名空间
变体
操作

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

来自 cppreference.cn
~scope_exit() noexcept;
(库基础 TS v3)

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

[编辑] 另请参阅

使 scope_exit 不活动
(公共成员函数) [编辑]