Overview
basic_iostream class is designed to read from and write to various streams such as files and memory.
Details
The class template basic_iostream provides support for high level input and output operations on file streams and memory streams. The supported operations include formatted input and output (e.g. integer values or whitespace-separated characters and characters strings) and unformatted input and output(e.g. raw characters and character arrays).
basic_iostream class is basically derived class of basic_istream and basic_ostream. It has no additional functionality other than constructor. It's the parent class of basic_fstream that deals with file system and basic_stringstream that deals strings in memory.
Syntax
template<class CharT, class Traits = char_traits<CharT>>class basic_iostream: public basic_istream<CharT,Traits> , public basic_ostream<CharT,Traits>
where CharT can be char or wchar_t. It's derived from basic_ios class.
member typesFollowing properties are defined.
Name Definition char_type char,wchar_t traits_type char_traits<char_type> int_type char_traits<char_type>::int_type pos_type char_traits<char_type>::pos_type off_type char_traits<char_type>::off_type Constructor
Name Description basic_iostream
(basic_streambuf* sb)Constructs an object of class basic_iostream, assigning initial values to its member objects by calling init(sb). If sb is a null pointer, the stream is placed in error state by setting its badbit.
No comments:
Post a Comment