Name
boolalpha function — Manipulator for reading and writing bool as text
Synopsis
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
.
See Also
ios_base::fmtflags
type, noboolalpha
function, num_get
in <locale>
, num_put
in <locale>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.