ManaPlus
Public Types | Static Public Member Functions | Private Member Functions
Catch::SafeBool Class Reference

#include <catch.hpp>

Public Types

typedef void(SafeBool::* type) () const
 

Static Public Member Functions

static type makeSafe (bool value)
 

Private Member Functions

void trueValue () const
 

Detailed Description

Definition at line 341 of file catch.hpp.

Member Typedef Documentation

◆ type

typedef void(SafeBool::* Catch::SafeBool::type) () const

Definition at line 343 of file catch.hpp.

Member Function Documentation

◆ makeSafe()

static type Catch::SafeBool::makeSafe ( bool  value)
inlinestatic

Definition at line 345 of file catch.hpp.

345  {
346  return value ? &SafeBool::trueValue : 0;
347  }
void trueValue() const
Definition: catch.hpp:349

References trueValue().

Referenced by Catch::Ptr< T >::operator SafeBool::type(), and Catch::Option< T >::operator SafeBool::type().

◆ trueValue()

void Catch::SafeBool::trueValue ( ) const
inlineprivate

Definition at line 349 of file catch.hpp.

349 {}

Referenced by makeSafe().


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