std::basic_ios::good
From cppreference.com
bool good() const;
|
||
Returns true if the the most recent I/O operation on the stream completed successfully. Specifically, returns result of rdstate() == 0.
This section is incomplete Reason: difference between fail() and good() |
Contents |
[edit] Parameters
(none)
[edit] Return value
true if the stream has no errors occurred, false otherwise.
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
ios_base::iostate flags | basic_ios accessors | |||||||
eofbit | failbit | badbit | good() | fail() | bad() | eof() | operator bool() | operator!() |
false | false | false | true | false | false | false | true | false |
false | false | true | false | true | true | false | false | true |
false | true | false | false | true | false | false | false | true |
false | true | true | false | true | true | false | false | true |
true | false | false | false | false | false | true | true | false |
true | false | true | false | true | true | true | false | true |
true | true | false | false | true | false | true | false | true |
true | true | true | false | true | true | true | false | true |