Share via


ios::operator void*

operator void* () const;

An operator that converts a stream to a pointer that can be compared to 0.

Return Value

The conversion returns 0 if either failbit or badbit is set in the stream’s error state. See rdstate for a description of the error state masks. A nonzero pointer is not meant to be dereferenced.

ios OverviewAbstract Stream Base Class

See Also   ios::good, ios::fail