开发手册 欢迎您!
软件开发者资料库

C ++库 - <iosfwd>

C ++ &lt;iosfwd&gt;库 - 从基本概念到高级概念,从简单而简单的步骤学习C ++算法库,其中包括C ++标准库和标准模板库(STL),涵盖所有内置类和函数。所有C ++容器,算法,函数,类,常量和头文件都使用非常容易理解的示例进行了详细解释,fstream,iomanip,ios,iosfwd,iostream,istream,ostream,sstream,streambuf,atomic,complex,exception ,功能,限制,区域设置,内存,新,数字,正则表达式,stdexcept,字符串,线程,元组,typeinfo,实用程序,valarray,数组,bitset,deque,转发列表,列表,地图,队列,设置,堆栈,无序地图,无序集,向量,算法,迭代器。

描述

它用于输入 - 输出正向声明,此标题提供标准输入/输出库类型的前向声明.

定义

以下是iosfwd函数的定义.

  #define _GLIBCXX_IOSFWD

示例

C ++ 98

在下面的示例中说明了iosfwd函数.

amespace std {   template struct char_traits;   template<> class char_traits;   template<> class char_traits;   template class allocator;   template  > class basic_ios;   template  > class basic_streambuf;   template  > class basic_istream;   template  > class basic_ostream;   template  > class basic_iostream;    template , class Alloc=allocator >      class basic_stringbuf;   template , class Alloc=allocator >       class basic_istringstream;   template , class Alloc=allocator >      class basic_ostringstream;   template , class Alloc=allocator >      class basic_stringstream;   template  > class basic_filebuf;   template  > class basic_ifstream;   template  > class basic_ofstream;   template  > class basic_fstream;   template  > class istreambuf_iterator;   template  > class ostreambuf_iterator;   template class fpos;   typedef basic_ios              ios;   typedef basic_streambuf        streambuf;   typedef basic_istream          istream;   typedef basic_ostream          ostream;   typedef basic_iostream         iostream;   typedef basic_stringbuf        stringbuf;   typedef basic_istringstream    istringstream;   typedef basic_ostringstream    ostringstream;   typedef basic_stringstream     stringstream;   typedef basic_filebuf          filebuf;   typedef basic_ifstream         ifstream;   typedef basic_ofstream         ofstream;   typedef basic_fstream          fstream;   typedef basic_ios           wios;   typedef basic_streambuf     wstreambuf;   typedef basic_istream       wistream;   typedef basic_ostream       wostream;   typedef basic_iostream      wiostream;   typedef basic_stringbuf     wstringbuf;   typedef basic_istringstream wistringstream;   typedef basic_ostringstream wostringstream;   typedef basic_stringstream  wstringstream;   typedef basic_filebuf       wfilebuf;   typedef basic_ifstream      wifstream;   typedef basic_ofstream      wofstream;   typedef basic_fstream       wfstream;   typedef fpos streampos;   typedef fpos wstreampos;}

C ++ 11

以下示例解释了iosfwd函数.

namespace std {   template struct char_traits;   template<> class char_traits;   template<> class char_traits;   template<> class char_traits;   template<> class char_traits;   template class allocator;   template  > class basic_ios;   template  > class basic_streambuf;   template  > class basic_istream;   template  > class basic_ostream;   template  > class basic_iostream;    template , class Alloc=allocator >      class basic_stringbuf;   template , class Alloc=allocator >       class basic_istringstream;   template , class Alloc=allocator >      class basic_ostringstream;   template , class Alloc=allocator >      class basic_stringstream;   template  > class basic_filebuf;   template  > class basic_ifstream;   template  > class basic_ofstream;   template  > class basic_fstream;   template  > class istreambuf_iterator;   template  > class ostreambuf_iterator;  template class fpos;   typedef basic_ios              ios;   typedef basic_streambuf        streambuf;   typedef basic_istream          istream;   typedef basic_ostream          ostream;   typedef basic_iostream         iostream;   typedef basic_stringbuf        stringbuf;   typedef basic_istringstream    istringstream;   typedef basic_ostringstream    ostringstream;   typedef basic_stringstream     stringstream;   typedef basic_filebuf          filebuf;   typedef basic_ifstream         ifstream;   typedef basic_ofstream         ofstream;   typedef basic_fstream          fstream;   typedef basic_ios           wios;   typedef basic_streambuf     wstreambuf;   typedef basic_istream       wistream;   typedef basic_ostream       wostream;   typedef basic_iostream      wiostream;   typedef basic_stringbuf     wstringbuf;   typedef basic_istringstream wistringstream;   typedef basic_ostringstream wostringstream;   typedef basic_stringstream  wstringstream;   typedef basic_filebuf       wfilebuf;   typedef basic_ifstream      wifstream;   typedef basic_ofstream      wofstream;   typedef basic_fstream       wfstream;   typedef fpos streampos;   typedef fpos wstreampos;}