cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : ios : init
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
IOstream Library
manipulators
classes:
· filebuf
· fstream
· ifstream
· ios
· iostream
· ios_base
· istream
· istringstream
· ofstream
· ostream
· ostringstream
· streambuf
· stringbuf
· stringstream
objects:
· cerr
· cin
· clog
· cout
types:
· fpos
· streamoff
· streampos
· streamsize
ios
· ios::ios
· ios::~ios
member functions:
· ios::bad
· ios::clear
· ios::copyfmt
· ios::eof
· ios::exceptions
· ios::fail
· ios::fill
· ios::good
· ios::imbue
· ios::init
· ios::narrow
· ios::operator!
· ios::operator void*
· ios::rdbuf
· ios::rdstate
· ios::setstate
· ios::tie
· ios::widen

-

ios::init protected member function
void init ( streambuf sb );

Initialize object [protected]

This protected member initializes the values of the stream's internal flags and member variables.

The state flags are set to their default values and the associated stream buffer is set to sb. The internal extensible arrays are set to null pointers.

After a stream object has been initialized with init, the values returned by the following members are:

member functionvalue
rdbuf()sb
tie()0
rdstate()goodbit if sb is not a null pointer, badbit otherwise
exceptions()goodbit
flags()skipws | dec
width()0
precision()6
fill()' ' (whitespace)
getloc()a copy of locale()

Parameters

sb
Pointer to a streambuf object, which is set as the associated stream buffer for the object.

Return Value

none

See also

ios::ios Construct object (constructor member)

© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us