LMMS
Loading...
Searching...
No Matches
calf_utils::scope_assign< T, Tref > Class Template Reference

Exception-safe temporary assignment. More...

#include <utils.h>

Public Member Functions

 scope_assign (Tref _data, T new_value)
 ~scope_assign ()

Private Attributes

Tref data
old_value

Detailed Description

template<class T, class Tref = T&>
class calf_utils::scope_assign< T, Tref >

Exception-safe temporary assignment.

Constructor & Destructor Documentation

◆ scope_assign()

template<class T, class Tref = T&>
calf_utils::scope_assign< T, Tref >::scope_assign ( Tref _data,
T new_value )
inline

◆ ~scope_assign()

template<class T, class Tref = T&>
calf_utils::scope_assign< T, Tref >::~scope_assign ( )
inline

Member Data Documentation

◆ data

template<class T, class Tref = T&>
Tref calf_utils::scope_assign< T, Tref >::data
private

◆ old_value

template<class T, class Tref = T&>
T calf_utils::scope_assign< T, Tref >::old_value
private

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