
Ignore all data passed by the stream operatorCan be used instead of the OutputStream if (for debugging reasons) all output should be ignored, e.g. for DBG_VERBOSE. More...
#include <debug/nullstream.h>
Public Member Functions | |
NullStream () | |
Empty default constructor. | |
template<typename T > | |
NullStream & | operator<< (T value) |
Generic stream operator for any data type. More... | |
template<typename T > | |
NullStream & | operator<< (T &(*f)(T &)) |
Deal with [OutputStream] manipulator functions. More... | |
Ignore all data passed by the stream operator
Can be used instead of the OutputStream if (for debugging reasons) all output should be ignored, e.g. for DBG_VERBOSE.
By using template programming, two generic methods are sufficient (which simply discard everything).
|
inline |
Generic stream operator for any data type.
Uses template meta programming for a generic & short solution
T | Type of data to ignore |
value | data to be ignore |
|
inline |
Deal with [OutputStream] manipulator functions.
Uses template meta programming for a generic & short solution
T | ignored stream |
f | pointer to manipulator function |