ostream(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

✨ ostream(3) ✨

okay so we're in the Library Functions Manual, and this is the ostream(3) page β€” aka the C++ output stream moment. It's giving "all your << energy lives here," and we're gonna walk through it together. πŸ’…


πŸŽ€ NAME πŸŽ€

ostream -

(and that's literally the whole name entry, bestie. no extra description. minimal. iconic. πŸ‘‘)


🌈 SYNOPSIS 🌈

🧚 Classes 🧚

  • class std::basic_ostream< _CharT, _Traits > β€” Controlling output.

This is the base class for all output streams. It provides text formatting of all builtin types, and communicates with any class derived from basic_streambuf to do the actual output. "

yes bestie, that trailing " is in the source text. we preserve it. no cap. πŸ™ˆ
  • class std::basic_ostream< _CharT, _Traits >::basic_ostream::sentry β€” Performs setup work for output streams.

🌸 Namespaces 🌸

  • namespace std

πŸ’œ Defines πŸ’œ

#define _GLIBCXX_OSTREAM

πŸ”₯ Functions πŸ”₯

okay here's the full function roster, and I'm keeping every signature character-for-character because we do not mess with C++ templates in this house:

template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::endl (basic_ostream< _CharT, _Traits > &__os)
template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::ends (basic_ostream< _CharT, _Traits > &__os)
template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::flush (basic_ostream< _CharT, _Traits > &__os)

template<class _Traits > basic_ostream< char, _Traits > & std::operator<< (basic_ostream< char, _Traits > &__out, const unsigned char *__s)
template<class _Traits > basic_ostream< char, _Traits > & std::operator<< (basic_ostream< char, _Traits > &__out, const signed char *__s)
template<class _Traits > basic_ostream< char, _Traits > & std::operator<< (basic_ostream< char, _Traits > &__out, const char *__s)
template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::operator<< (basic_ostream< _CharT, _Traits > &__out, const char *__s)
template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::operator<< (basic_ostream< _CharT, _Traits > &__out, const _CharT *__s)

template<class _Traits > basic_ostream< char, _Traits > & std::operator<< (basic_ostream< char, _Traits > &__out, unsigned char __c)
template<class _Traits > basic_ostream< char, _Traits > & std::operator<< (basic_ostream< char, _Traits > &__out, signed char __c)
template<class _Traits > basic_ostream< char, _Traits > & std::operator<< (basic_ostream< char, _Traits > &__out, char __c)
template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::operator<< (basic_ostream< _CharT, _Traits > &__out, char __c)
template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & std::operator<< (basic_ostream< _CharT, _Traits > &__out, _CharT __c)

πŸ¦‹ Detailed Description πŸ¦‹

This is a Standard C++ Library header.

Definition in file ostream.


🌟 Author 🌟

Generated automatically by Doxygen for libstdc++ from the source code.


πŸ’… later, bestie β€” this glow-up of ostream(3) came from libstdc++, dated 21 Apr 2009. periodt. πŸŽ€

πŸ“¦ where this page comes from