Wrapper for an bool value, for formatted ostream output.
An Bool object has a bool value, and a minimum output field width. The << operator for a Bool uses the specified width. The value and width may both be specified as parameters to a constructor. If the width is not specified as a constructor parameter, it is set within the constructor to the default Format::defaultWidth().
An Bool object may be passed to an ostream as a temporary object. For example, the expression:
std::cout <<
Bool(
true) <<
Bool(
false, 10) << std::endl;
outputs the value true using the default width, followed by the false value in a field of minimum width 10.
Definition at line 35 of file Bool.h.