Effects:
Inserts the duration
d onto the stream
os
as if it were implemented as follows:
basic_ostringstream<charT, traits> s;
s.flags(os.flags());
s.imbue(os.getloc());
s.precision(os.precision());
s << d.count() << units-suffix;
return os << s.str();
where
units-suffix
depends on the type
Period::type as follows:
In the list above,
the use of
num and
den
refer to the static data members of
Period::type,
which are converted to arrays of
charT using a decimal conversion with no leading zeroes
.