Audacity  2.3.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SimpleGuard< bool > Struct Template Reference

SimpleGuard specialization that returns bool, and defines Default. More...

#include <AudacityException.h>

Public Member Functions

 SimpleGuard (bool value)
 
bool operator() (AudacityException *) const
 

Static Public Member Functions

static SimpleGuard Default ()
 

Public Attributes

const bool m_value
 

Detailed Description

template<>
struct SimpleGuard< bool >

SimpleGuard specialization that returns bool, and defines Default.

Definition at line 114 of file AudacityException.h.

Constructor & Destructor Documentation

SimpleGuard< bool >::SimpleGuard ( bool  value)
inlineexplicit

Definition at line 116 of file AudacityException.h.

116 : m_value{ value } {}

Member Function Documentation

static SimpleGuard SimpleGuard< bool >::Default ( )
inlinestatic

Definition at line 118 of file AudacityException.h.

119  { return SimpleGuard{ false }; }
SimpleGuard classes add the second argument of GuardedCall: Frequently useful converter of all except...
bool SimpleGuard< bool >::operator() ( AudacityException ) const
inline

Definition at line 117 of file AudacityException.h.

117 { return m_value; }

Member Data Documentation

const bool SimpleGuard< bool >::m_value

Definition at line 120 of file AudacityException.h.


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