44 std::wistringstream
in (std::ios::in | std::ios::out);
47 std::wostream
out (
in.rdbuf ());
50 in.exceptions (std::ios::badbit);
51 out.exceptions (std::ios::failbit | std::ios::badbit);
54 out <<
L"Il avait l'air heureux." << std::endl;
63 if ((std::isspace)(
c,
in.getloc ()))
64 std::wcout << std::endl;
69 std::wcout << std::endl;
80 in.width (
sizeof buf);
83 std::wcout << std::right;
88 std::wcout.width (10);
89 std::wcout <<
buf << std::endl;
92 std::wcout << std::endl;
101 std::wostream::pos_type
pos=
out.tellp ();
106 out << std::hex << std::setw (10) << l << std::endl;
109 out << std::oct << std::setw (10) << l << std::endl;
112 out << std::dec << std::setw (10) << l << std::endl;
118 std::wcout <<
in.rdbuf () << std::endl;
126 in.unsetf (std::ios::basefield);
134 std::wcout <<
a << std::endl <<
b << std::endl <<
d << std::endl;
137 catch (std::ios::failure &
e) {
138 std::wcerr <<
e.what () << std::endl;