std::endl
std::endl
Defined in header <ostream> | ||
---|---|---|
template< class CharT, class Traits > std::basic_ostream<CharT, Traits>& endl( std::basic_ostream<CharT, Traits>& os ); |
Inserts a newline character into the output sequence os
and flushes it as if by calling os.put(os.widen('\n'))
followed by os.flush()
.
This is an output-only I/O manipulator, it may be called with an expression such as out << std::endl
for any out
of type 登录查看完整内容