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 (const AutoReset &)=delete
 
 AutoReset (AutoReset &&)=delete
 
AutoResetoperator= (const AutoReset &)=delete
 
AutoResetoperator= (AutoReset &&)=delete
 
 ~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() [1/3]

AutoReset ( T *  variable,
new_value 
)
inline

Definition at line 15 of file autoreset.hpp.

◆ AutoReset() [2/3]

AutoReset ( const AutoReset< T > &  )
delete

◆ AutoReset() [3/3]

AutoReset ( AutoReset< T > &&  )
delete

◆ ~AutoReset()

~AutoReset ( )
inline

Definition at line 23 of file autoreset.hpp.

Member Function Documentation

◆ operator=() [1/2]

AutoReset& operator= ( const AutoReset< T > &  )
delete

◆ operator=() [2/2]

AutoReset& operator= ( AutoReset< T > &&  )
delete

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