On Mon, Mar 06, 2000 at 05:07:44PM +0100, Jean-Marc Lasgouttes wrote:
>
> I could not find any omanip in either cxx include files or C++ ISO
> standard. What is that?
>
> JMarc
>From /usr/include/g++-2/iomanip.h:
//-----------------------------------------------------------------------------
// Output-Stream Manipulators
//-----------------------------------------------------------------------------
//
template<class TP> class omanip;
template<class TP> class oapp {
ostream& (*_f)(ostream&, TP);
public:
oapp(ostream& (*f)(ostream&,TP)) : _f(f) {}
//
omanip<TP> operator()(TP a)
{ return omanip<TP>(_f, a); }
};
template <class TP>
inline ostream& operator<<(ostream&, const omanip<TP>&);
template <class TP> class omanip {
ostream& (*_f)(ostream&, TP);
TP _a;
public:
omanip(ostream& (*f)(ostream&, TP), TP a) : _f(f), _a(a) {}
//
friend
ostream& operator<< <>(ostream& o, const omanip<TP>& m);
};
--
Kayvan A. Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory