Open Search
    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
    explicit

    Checks if there is no error.

    Returns
    True if this NoErrorPtr contains no error, false otherwise.

    ◆ operator Bool() [2/2]

    operator Bool ( )
    explicitprivate