NoErrorPtr Class Reference 系统

#include <errorbase.h>

Inheritance diagram for NoErrorPtr:

详细描述

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.

公共成员函数

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

私有成员函数

  operator Bool ()

成员函数文档编制

◆  operator Bool() [1/2]

operator Bool ( ) const
explicit

Checks if there is no error.

返回
True if this NoErrorPtr contains no error, false otherwise.

◆  operator Bool() [2/2]

operator Bool ( )
explicit private