basic_ios
·
fpos
·
ios
·
ios_base
·
streamoff
·
streampos
·
streamsize
·
wios
·
wstreampos
boolalpha
·
dec
·
fixed
·
hex
·
internal
·
left
·
noboolalpha
·
noshowbase
·
noshowpoint
·
noshowpos
·
noskipws
·
nounitbuf
·
nouppercase
·
oct
·
right
·
scientific
·
showbase
·
showpoint
·
showpos
·
skipws
·
unitbuf
·
uppercase
namespace std {
typedef T1 streamoff;
typedef T2 streamsize;
class ios_base;
// TEMPLATE CLASSES
template <class E, class T = char_traits<E> >
class basic_ios;
typedef basic_ios<char, char_traits<char> > ios;
typedef basic_ios<wchar_t, char_traits<wchar_t> > wios;
template <class St>
class fpos;
typedef fpos<mbstate_t> streampos;
typedef fpos<mbstate_t> wstreampos;
// MANIPULATORS
ios_base& boolalpha(ios_base& str);
ios_base& noboolalpha(ios_base& str);
ios_base& showbase(ios_base& str);
ios_base& noshowbase(ios_base& str);
ios_base& showpoint(ios_base& str);
ios_base& noshowpoint(ios_base& str);
ios_base& showpos(ios_base& str);
ios_base& noshowpos(ios_base& str);
ios_base& skipws(ios_base& str);
ios_base& noskipws(ios_base& str);
ios_base& unitbuf(ios_base& str);
ios_base& nounitbuf(ios_base& str);
ios_base& uppercase(ios_base& str);
ios_base& nouppercase(ios_base& str);
ios_base& internal(ios_base& str);
ios_base& left(ios_base& str);
ios_base& right(ios_base& str);
ios_base& dec(ios_base& str);
ios_base& hex(ios_base& str);
ios_base& oct(ios_base& str);
ios_base& fixed(ios_base& str);
ios_base& scientific(ios_base& str);
};
Include the iostreams standard header <ios>
to define several types and functions basic to the operation of iostreams.
(This header is typically included for you by another of the iostreams headers. You seldom have occasion to include it
directly.)
A large group of functions are manipulators. The manipulators declared in <ios>
alter the values stored in its
argument object of class ios_base
. Other manipulators perform actions on streams controlled by objects of a type
derived from this class, such as a specialization of one of the template classes basic_istream
or basic_ostream
.
For example, noskipws
(istr)
clears the format flag ios_base::
skipws
in the object istr
, which might be of type
istream
.
You can also call a manipulator by inserting it into an output stream or extracting it from an input stream, thanks to
some special machinery supplied in the classes derived from ios_base
. For example:
istr >>
noskipws
;
calls noskipws(istr)
.