Returns:
An object of unspecified type such that if
out
is an object of type
basic_ostream<charT, traits>
then the expression
out << setbase(base)
behaves as if it called
f(out, base),
or if
in
is an object of type
basic_istream<charT, traits>
then the expression
in >> setbase(base)
behaves as if it called
f(in, base), where the function f is defined as:
void f(ios_base& str, int base) {
str.setf(base == 8 ? ios_base::oct :
base == 10 ? ios_base::dec :
base == 16 ? ios_base::hex :
ios_base::fmtflags(0), ios_base::basefield);
}
The expression
out << setbase(base)
has type
basic_ostream<charT, traits>&
and value
out. The expression
in >> setbase(base)
has type
basic_istream<charT, traits>&
and value
in.