boolalpha function — Manipulator for reading and writing bool as text
ios_base& boolalpha(ios_base& stream)
The boolalpha
function is a
manipulator that sets the boolalpha
flag, which tells the stream to
read or write a bool
value as
text, according to the stream's locale. Specifically, the function
calls stream.setf(ios_base::boolalpha)
and
returns stream
.