provide convenience fixed(ios&) and scientific(ios&) inline functions

git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10475 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty
2004-12-16 03:46:43 +00:00
parent 4616c25941
commit 5f2a11b032

View File

@@ -284,6 +284,10 @@ inline ios& hex(ios& i)
{ i.setf(ios::hex, ios::dec|ios::hex|ios::oct); return i; }
inline ios& oct(ios& i)
{ i.setf(ios::oct, ios::dec|ios::hex|ios::oct); return i; }
inline ios& fixed(ios& i)
{ i.setf(ios::fixed, ios::floatfield); return i; }
inline ios& scientific(ios& i)
{ i.setf(ios::fixed, ios::floatfield); return i; }
} // extern "C++"
#endif /*!_IOSTREAM_H*/