for ostream | ostream& endl (ostream& os); |
---|---|
basic template | template <class charT, class traits> basic_ostream<charT,traits>& endl (basic_ostream<charT,traits>& os); |
os.put('\n')
(or os.put(os.widen('\n'))
for character types other than char
), and then os.flush()
.<<
) operations on output streams (see example below).flag | error |
---|---|
eofbit | - |
failbit | May be set if the construction of a sentry object failed. |
badbit | Either the insertion on the stream (or the synchronization) 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. |
|
|
100 3.14 314 |