Previous: , Up: Concrete styled_ostream subclasses   [Contents][Index]


3.5.4.3 The noop_styled_ostream class

The noop_styled_ostream class supports the styled output operations to any destination. The text is output to the given destination; the styling operations, however, do nothing. Its type is ‘noop_styled_ostream_t’. It is a subclass of ‘styled_ostream_t’.

It can be instantiated through this function:

Function: noop_styled_ostream_t noop_styled_ostream_create (ostream_t destination, bool pass_ownership)

Creates an output stream that delegates to destination and that supports the styling operations as no-ops.

If pass_ownership is true, closing the resulting stream will automatically close the destination.

Note: If pass_ownership is false, the resulting stream must be closed before destination can be closed.