15.1.2 operator bool

operator bool () const

The operator bool method can be used to check whether the OEDirectoryScan has been successfully opened and is still valid. A return value of true does not guarantee that the next call to the Next method will not return (const char*)0.