mrdocs::ScopeExitRestore

RAII helper that restores a referenced value on scope exit.

Synopsis

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.

Deduction Guides

Name

Description

ScopeExitRestore<T>

Deduction guide for ScopeExitRestore taking a reference and new value.

ScopeExitRestore<T>

Deduction guide for ScopeExitRestore taking a reference.

Created with MrDocs