From 5f2a11b03261cc155fae46fffae921b8f00919a9 Mon Sep 17 00:00:00 2001 From: shatty Date: Thu, 16 Dec 2004 03:46:43 +0000 Subject: [PATCH] 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 --- gcc/libio/iostream.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/libio/iostream.h b/gcc/libio/iostream.h index 22b9d69..51bd71a 100644 --- a/gcc/libio/iostream.h +++ b/gcc/libio/iostream.h @@ -284,6 +284,10 @@ { 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*/ -- gitore 0.2.3