NoErrorPtr Class Reference

#include <errorbase.h>

Inheritance diagram for NoErrorPtr:

Detailed Description

Helper class used by ifnoerr for the err variable. This uses ErrorPtr as base class, but reverses the logic of the conversion operator to Bool.

Public Member Functions

 operator Bool () const
- Public Member Functions inherited from ErrorPtr
 operator Bool () const

Private Member Functions

 operator Bool ()

Member Function Documentation

◆ operator Bool() [1/2]

operator Bool ( ) const

Checks if there is no error.

True if this NoErrorPtr contains no error, false otherwise.

◆ operator Bool() [2/2]

operator Bool ( )