FTXUI  5.0.0
C++ functional terminal UI.
AutoReset< T > Class Template Reference

Assign a value to a variable, reset its old value when going out of scope. More...

Public Member Functions

 AutoReset (T *variable, T new_value)
 
 ~AutoReset ()
 

Detailed Description

template<typename T>
class ftxui::AutoReset< T >

Assign a value to a variable, reset its old value when going out of scope.

Definition at line 13 of file autoreset.hpp.

Constructor & Destructor Documentation

◆ AutoReset()

AutoReset ( T *  variable,
new_value 
)
inline

Definition at line 15 of file autoreset.hpp.

◆ ~AutoReset()

~AutoReset ( )
inline

Definition at line 19 of file autoreset.hpp.


The documentation for this class was generated from the following file: