mrdocs::ScopeExitRestore

RAII helper that restores a referenced value on scope exit.

Synopsis

Declared in <mrdocs/Support/ScopeExit.hpp>

template<class T>
class ScopeExitRestore;

Member Functions

Name

Description

ScopeExitRestore [constructor]

Constructors

~ScopeExitRestore [destructor]

Restore the previous value unless dismissed.

dismiss

Prevent restoration on destruction.

Created with MrDocs