Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
RestoreValue< T > Struct Template Reference

Structure used by ValueRestorer. More...

#include <MemoryX.h>

Collaboration diagram for RestoreValue< T >:
[legend]

Public Member Functions

void operator() (T *p) const
 

Public Attributes

oldValue
 

Detailed Description

template<typename T>
struct RestoreValue< T >

Structure used by ValueRestorer.

Definition at line 321 of file MemoryX.h.

Member Function Documentation

◆ operator()()

template<typename T >
void RestoreValue< T >::operator() ( T *  p) const
inline

Definition at line 323 of file MemoryX.h.

323 { if (p) *p = oldValue; }

References RestoreValue< T >::oldValue.

Member Data Documentation

◆ oldValue

template<typename T >
T RestoreValue< T >::oldValue

Definition at line 322 of file MemoryX.h.

Referenced by RestoreValue< T >::operator()().


The documentation for this struct was generated from the following file:
RestoreValue::oldValue
T oldValue
Definition: MemoryX.h:322