Audacity 3.2.0
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 203 of file MemoryX.h.

Member Function Documentation

◆ operator()()

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

Definition at line 205 of file MemoryX.h.

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

References RestoreValue< T >::oldValue.

Member Data Documentation

◆ oldValue

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

Definition at line 204 of file MemoryX.h.

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


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