Add CleanupHelper::cleanup()
This commit is contained in:
@ -19,6 +19,15 @@ public:
|
||||
(*m_cleanup)();
|
||||
}
|
||||
|
||||
void cleanup()
|
||||
{
|
||||
if (m_cleanup)
|
||||
{
|
||||
(*m_cleanup)();
|
||||
m_cleanup = std::nullopt;
|
||||
}
|
||||
}
|
||||
|
||||
void disarm()
|
||||
{
|
||||
m_cleanup = std::nullopt;
|
||||
|
Reference in New Issue
Block a user