跳到正文

个人记录

to wuye

zhangyoutao0815321约 3 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年6月21日
篇幅
约 3 分钟

版本

  1. v1当前

#ifndef _GLIBCXX_IOSTREAM #define _GLIBCXX_IOSTREAM 1

#pragma GCC system_header

#include <bits/c++config.h> #include <ostream> #include <istream>

namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION

/**

  • @name Standard Stream Objects
  • The <iostream> header declares the eight standard stream
  • objects. For other declarations, see
  • http://gcc.gnu.org/onlinedocs/libstdc++/manual/io.html
  • and the @link iosfwd I/O forward declarations @endlink
  • They are required by default to cooperate with the global C
  • library’s @c FILE streams, and to be available during program
  • startup and termination. For more information, see the section of the
  • manual linked to above. */ //@{ extern istream cin; /// Linked to standard input extern ostream cout; /// Linked to standard output extern ostream cerr; /// Linked to standard error (unbuffered) extern ostream clog; /// Linked to standard error (buffered)

#ifdef _GLIBCXX_USE_WCHAR_T extern wistream wcin; /// Linked to standard input extern wostream wcout; /// Linked to standard output extern wostream wcerr; /// Linked to standard error (unbuffered) extern wostream wclog; /// Linked to standard error (buffered) #endif //@}

// For construction of filebuffers for cout, cin, cerr, clog et. al. static ios_base::Init __ioinit;

_GLIBCXX_END_NAMESPACE_VERSION } // namespace

#endif /* _GLIBCXX_IOSTREAM */

原文