⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ios_base.h

📁 gcc3.2.1源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
    _Words&     _M_grow_words(int __index);    // Members for locale and locale caching.    locale 		_M_ios_locale;    void     _M_init();  public:    // 27.4.2.1.6  Class ios_base::Init    // Used to initialize standard streams. In theory, g++ could use    // -finit-priority to order this stuff correctly without going    // through these machinations.     class Init     {      friend class ios_base;    public:      Init();      ~Init();            static void      _S_ios_create(bool __sync);            static void      _S_ios_destroy();    private:      static int 	_S_ios_base_init;      static bool	_S_synced_with_stdio;    };    // Fmtflags state:    inline fmtflags     flags() const { return _M_flags; }    inline fmtflags     flags(fmtflags __fmtfl)    {       fmtflags __old = _M_flags;       _M_flags = __fmtfl;       return __old;     }    inline fmtflags     setf(fmtflags __fmtfl)    {       fmtflags __old = _M_flags;       _M_flags |= __fmtfl;       return __old;     }    inline fmtflags     setf(fmtflags __fmtfl, fmtflags __mask)    {      fmtflags __old = _M_flags;      _M_flags &= ~__mask;      _M_flags |= (__fmtfl & __mask);      return __old;    }    inline void     unsetf(fmtflags __mask) { _M_flags &= ~__mask; }    inline streamsize     precision() const { return _M_precision; }    inline streamsize     precision(streamsize __prec)    {       streamsize __old = _M_precision;       _M_precision = __prec;       return __old;     }    inline streamsize     width() const { return _M_width; }    inline streamsize     width(streamsize __wide)    {       streamsize __old = _M_width;       _M_width = __wide;       return __old;     }    static bool     sync_with_stdio(bool __sync = true);    // Locales:    locale     imbue(const locale& __loc);    inline locale     getloc() const { return _M_ios_locale; }    // Storage:    static int     xalloc() throw();    inline long&     iword(int __ix)    {      _Words& __word = (__ix < _M_word_size) 			? _M_word[__ix] : _M_grow_words(__ix);      return __word._M_iword;    }    inline void*&     pword(int __ix)    {      _Words& __word = (__ix < _M_word_size) 			? _M_word[__ix] : _M_grow_words(__ix);      return __word._M_pword;    }    // Destructor    ~ios_base();  protected:    ios_base();#ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS  //50.  Copy constructor and assignment operator of ios_base  private:    ios_base(const ios_base&);    ios_base&     operator=(const ios_base&);#endif  };   // 27.4.5.1 fmtflags manipulators:  inline ios_base&   boolalpha(ios_base& __base)  {    __base.setf(ios_base::boolalpha);    return __base;  }  inline ios_base&   noboolalpha(ios_base& __base)  {    __base.unsetf(ios_base::boolalpha);    return __base;  }  inline ios_base&   showbase(ios_base& __base)  {    __base.setf(ios_base::showbase);    return __base;  }  inline ios_base&   noshowbase(ios_base& __base)  {    __base.unsetf(ios_base::showbase);    return __base;  }  inline ios_base&   showpoint(ios_base& __base)  {    __base.setf(ios_base::showpoint);    return __base;  }  inline ios_base&   noshowpoint(ios_base& __base)  {    __base.unsetf(ios_base::showpoint);    return __base;  }  inline ios_base&   showpos(ios_base& __base)  {    __base.setf(ios_base::showpos);    return __base;  }  inline ios_base&   noshowpos(ios_base& __base)  {    __base.unsetf(ios_base::showpos);    return __base;  }  inline ios_base&   skipws(ios_base& __base)  {    __base.setf(ios_base::skipws);    return __base;  }    inline ios_base&   noskipws(ios_base& __base)  {    __base.unsetf(ios_base::skipws);    return __base;  }  inline ios_base&   uppercase(ios_base& __base)  {    __base.setf(ios_base::uppercase);    return __base;  }  inline ios_base&   nouppercase(ios_base& __base)  {    __base.unsetf(ios_base::uppercase);    return __base;  }  inline ios_base&   unitbuf(ios_base& __base)  {     __base.setf(ios_base::unitbuf);           return __base;  }  inline ios_base&   nounitbuf(ios_base& __base)  {     __base.unsetf(ios_base::unitbuf);     return __base;      }  // 27.4.5.2 adjustfield anipulators:  inline ios_base&   internal(ios_base& __base)  {     __base.setf(ios_base::internal, ios_base::adjustfield);     return __base;      }  inline ios_base&   left(ios_base& __base)  {    __base.setf(ios_base::left, ios_base::adjustfield);    return __base;  }    inline ios_base&   right(ios_base& __base)  {    __base.setf(ios_base::right, ios_base::adjustfield);    return __base;  }    // 27.4.5.3 basefield anipulators:  inline ios_base&   dec(ios_base& __base)  {    __base.setf(ios_base::dec, ios_base::basefield);    return __base;  }    inline ios_base&   hex(ios_base& __base)  {    __base.setf(ios_base::hex, ios_base::basefield);    return __base;  }  inline ios_base&   oct(ios_base& __base)  {    __base.setf(ios_base::oct, ios_base::basefield);    return __base;  }    // 27.4.5.4 floatfield anipulators:  inline ios_base&   fixed(ios_base& __base)  {    __base.setf(ios_base::fixed, ios_base::floatfield);    return __base;  }  inline ios_base&   scientific(ios_base& __base)  {    __base.setf(ios_base::scientific, ios_base::floatfield);    return __base;  }} // namespace std#endif /* _CPP_BITS_IOSBASE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -