for ostream | ostream& ends (ostream& os); |
---|---|
basic template | template <class charT, class traits>basic_ostream<charT,traits>& ends (basic_ostream<charT,traits>& os); |
os.put('\0')
(or os.put(charT())
for other character types).<<
) operations on output streams.flag | error |
---|---|
eofbit | - |
failbit | May be set if the construction of a sentry object failed. |
badbit | Either the insertion on the stream failed, or some other error happened (such as when this function catches an exception thrown by an internal operation). When set, the integrity of the stream may have been affected. |