iosfwd(3)
π¦ iosfwd β the header that's literally just vibes and forward declarations
okay so first things first: this is iosfwd(3), from the Library Functions Manual, and bestie⦠the NAME section is giving nothing. Like, the description is genuinely just empty:
iosfwd -
That's it. That's the whole description. Not me defending it, it's just what it is π (it's a forward-declaration header, so the "nothing" is kind of the point β iykyk).
β¨ SYNOPSIS β¨
πΈ Namespaces
namespace stdβ yeah, the one and only. All the good stuff lives in here π«Ά
π Defines
#define _GLIBCXX_IOSFWDβ the include guard, doing its little job so this header doesn't get read twice π
β Typedefs
so here's the part where you actually pay attention, because this list is the entire personality of this header. Every single one is a char-flavored alias, and then its wchar_t twin right after. no cap, that's the whole pattern π
the char girlies:
typedef basic_filebuf< char > std::filebuftypedef basic_fstream< char > std::fstreamtypedef basic_ifstream< char > std::ifstreamtypedef basic_ios< char > std::iostypedef basic_iostream< char > std::iostreamtypedef basic_istream< char > std::istreamtypedef basic_istringstream< char > std::istringstreamtypedef basic_ofstream< char > std::ofstreamtypedef basic_ostream< char > std::ostreamtypedef basic_ostringstream< char > std::ostringstreamtypedef basic_streambuf< char > std::streambuftypedef basic_stringbuf< char > std::stringbuftypedef basic_stringstream< char > std::stringstream
and their wchar_t era (wide chars, wide energy) π:
typedef basic_filebuf< wchar_t > std::wfilebuftypedef basic_fstream< wchar_t > std::wfstreamtypedef basic_ifstream< wchar_t > std::wifstreamtypedef basic_ios< wchar_t > std::wiostypedef basic_iostream< wchar_t > std::wiostreamtypedef basic_istream< wchar_t > std::wistreamtypedef basic_istringstream< wchar_t > std::wistringstreamtypedef basic_ofstream< wchar_t > std::wofstreamtypedef basic_ostream< wchar_t > std::wostreamtypedef basic_ostringstream< wchar_t > std::wostringstreamtypedef basic_streambuf< wchar_t > std::wstreambuftypedef basic_stringbuf< wchar_t > std::wstringbuftypedef basic_stringstream< wchar_t > std::wstringstream
like, notice how every w-prefixed one is literally the same class with wchar_t swapped in? that's not a coincidence, that's the design, and it ate π₯
π Detailed Description
This is a Standard C++ Library header.
That's the whole description, fr fr β it's short, it's sweet, it's a header. Definition in file iosfwd. π
lowkey important detail: this file is mostly forward declarations β the whole point is that you can name these types (likestd::istreamorstd::wstringstream) without dragging in the full definitions. that's why it's so tiny and why every single line up there is atypedef. slay π
π§ Author
Generated automatically by Doxygen for libstdc++ from the source code.
(no human author to tag, it's a robot's work, and honestly? it did that π«Ά)
and that's the page!! mwah π shoutout to libstdc++ for shipping this one on 21 Apr 2009 β yeah, she's vintage and she's iconic, we stan an OG release date βππ
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms