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 >:

Public Member Functions

void operator() (T *p) const

Public Attributes


Detailed Description

template<typename T>
struct RestoreValue< T >

Structure used by ValueRestorer.

Definition at line 200 of file MemoryX.h.

Member Function Documentation

◆ operator()()

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

Definition at line 202 of file MemoryX.h.

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

References RestoreValue< T >::oldValue.

Member Data Documentation

◆ oldValue

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

Definition at line 201 of file MemoryX.h.

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

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