[ostream.syn]

# 31 Input/output library [[input.output]](./#input.output)

## 31.7 Formatting and manipulators [[iostream.format]](iostream.format#ostream.syn)

### 31.7.2 Header <ostream> synopsis [ostream.syn]

[ð](#header:%3costream%3e)

namespace std {// [[ostream]](ostream "31.7.6.2 Class template basic_­ostream"), class template basic_ostreamtemplate<class charT, class traits = char_traits<charT>>class basic_ostream; using ostream = basic_ostream<char>; using wostream = basic_ostream<wchar_t>; // [[ostream.manip]](ostream.manip "31.7.6.5 Standard basic_­ostream manipulators"), standard basic_ostream manipulatorstemplate<class charT, class traits> basic_ostream<charT, traits>& endl(basic_ostream<charT, traits>& os); template<class charT, class traits> basic_ostream<charT, traits>& ends(basic_ostream<charT, traits>& os); template<class charT, class traits> basic_ostream<charT, traits>& flush(basic_ostream<charT, traits>& os); template<class charT, class traits> basic_ostream<charT, traits>& emit_on_flush(basic_ostream<charT, traits>& os); template<class charT, class traits> basic_ostream<charT, traits>& noemit_on_flush(basic_ostream<charT, traits>& os); template<class charT, class traits> basic_ostream<charT, traits>& flush_emit(basic_ostream<charT, traits>& os); // [[ostream.rvalue]](ostream.rvalue "31.7.6.6 Rvalue stream insertion"), rvalue stream insertiontemplate<class Ostream, class T> Ostream&& operator<<(Ostream&& os, const T& x); // [[ostream.formatted.print]](ostream.formatted.print "31.7.6.3.5 Print"), print functionstemplate<class... Args>void print(ostream& os, format_string<Args...> fmt, Args&&... args); template<class... Args>void println(ostream& os, format_string<Args...> fmt, Args&&... args); void println(ostream& os); void vprint_unicode(ostream& os, string_view fmt, format_args args); void vprint_nonunicode(ostream& os, string_view fmt, format_args args);}
