Namespaces
Variants
Views
Actions

std::basic_ios::operator!

From cppreference.com
bool operator!() const;

Returns true if an error has occurred on the associated stream. Specifically, returns true if badbit or failbit is set in rdstate().

Contents

[edit] Parameters

(none)

[edit] Return value

true if an error has occurred, false otherwise.

[edit] Example

[edit] See also

checks if no error has occurred i.e. I/O operations are available
(public member function) [edit]
checks if a non-recoverable error has occurred
(public member function) [edit]
checks if a recoverable error has occurred
(public member function) [edit]
checks if end-of-file has been reached
(public member function) [edit]
(until C++11)
(since C++11)
checks if no error has occurred (synonym of !fail())
(public member function) [edit]