-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiomanip.cpp
36 lines (33 loc) · 1018 Bytes
/
iomanip.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <iomanip>
#include <iostream>
namespace ppcStreams
{
/********************************************************/
ostream& operator<<(ostream& stream, const setw& value)
/********************************************************/
{
stream.width(value._width);
return(stream);
}
/********************************************************/
istream& operator>>(istream& stream, setw& value)
/********************************************************/
{
stream.width(value._width);
return(stream);
}
/********************************************************/
ostream& operator<<(ostream& stream, const setprecision& value)
/********************************************************/
{
stream.precision(value._precision);
return(stream);
}
/********************************************************/
istream& operator>>(istream& stream, setprecision& value)
/********************************************************/
{
stream.precision(value._precision);
return(stream);
}
};