Top "Ostream" questions

In C++ std::ostream is the base class for output streams.

How do the stream manipulators work?

It is well known that the user can define stream manipulators like this: ostream& tab(ostream & output) { return …

c++ iostream ostream
C++ - ostream, friends and namespaces

Everything was fine until I moved my objects to a namespace. And now the compiler claims that my Color attributes …

c++ overloading ostream
Using ostream as a reference (C++)

I have a homework assignment where the header file is provided to us, and is unchangeable. Im having trouble figuring …

c++ pass-by-reference ostream
Can't std::ostream output a const char array?

For the fun and experience of it, I'm modifying and exploring the source code for Blobby Volley 2 1.0 (Linux). Well... I …

c++ operator-overloading ostream
C++ : friend declaration ‘declares a non-template function

I have a problem to overload the << stream operator and I don't find the solution : template<class …

c++ templates gcc ostream
Platform independent /dev/null in c++

Possible Duplicate: Implementing a no-op std::ostream Is there any stream equivalent of NULL in c++? I want to write …

c++ stream ostream default-parameters
How can I make an ostream reference an ofstream? (C++)

I'm trying to make a simple logger class, and I want the ability to either log to either a generic …

c++ reference ofstream ostream
Setting minimum number of decimal places for std::ostream precision

Is there a way to set the "minimum" number of decimal places that a std::ostream will output? For example, …

c++ decimal precision ostream
How should I correctly assign cout to a static ostream reference variable?

I'm defining a class like this: class StaticRuntimeContext { public: enum Verbosity { kHIGH, kMEDIUM, kLOW, kSILENT }; static void Construct(); static std::…

c++ iostream ostream